mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-24 04:30:03 +08:00
Add Key String() function
This commit is contained in:
parent
8f88d382a5
commit
36a31771f1
@ -1,5 +1,7 @@
|
|||||||
package storage
|
package storage
|
||||||
|
|
||||||
|
import "strconv"
|
||||||
|
|
||||||
type NeedleValue struct {
|
type NeedleValue struct {
|
||||||
Key Key
|
Key Key
|
||||||
Offset uint32 `comment:"Volume offset"` //since aligned to 8 bytes, range is 4G*8=32G
|
Offset uint32 `comment:"Volume offset"` //since aligned to 8 bytes, range is 4G*8=32G
|
||||||
@ -12,6 +14,10 @@ const (
|
|||||||
|
|
||||||
type Key uint64
|
type Key uint64
|
||||||
|
|
||||||
|
func (k Key) String() string {
|
||||||
|
return strconv.FormatUint(uint64(k), 10)
|
||||||
|
}
|
||||||
|
|
||||||
type CompactSection struct {
|
type CompactSection struct {
|
||||||
values []NeedleValue
|
values []NeedleValue
|
||||||
overflow map[Key]NeedleValue
|
overflow map[Key]NeedleValue
|
||||||
|
Loading…
Reference in New Issue
Block a user