Browse Source

specify constant data type to uint64 instead of default int

fix https://github.com/chrislusf/seaweedfs/issues/1324
pull/1329/head
Chris Lu 5 years ago
parent
commit
7ff2b0121d
  1. 2
      weed/storage/types/offset_5bytes.go

2
weed/storage/types/offset_5bytes.go

@ -12,7 +12,7 @@ type OffsetHigher struct {
const (
OffsetSize = 4 + 1
MaxPossibleVolumeSize = 4 * 1024 * 1024 * 1024 * 8 * 256 /* 256 is from the extra byte */ // 8TB
MaxPossibleVolumeSize uint64 = 4 * 1024 * 1024 * 1024 * 8 * 256 /* 256 is from the extra byte */ // 8TB
)
func OffsetToBytes(bytes []byte, offset Offset) {

Loading…
Cancel
Save