aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-05-19 07:55:23 -0700
committerChris Lu <chris.lu@gmail.com>2020-05-19 07:55:23 -0700
commit7ff2b0121dff4696b0811d396cd87d1d4f774e3e (patch)
treeebb19b3098c47a807bea573ef6bd3d063d3f35f3
parent11b33c07606b1c2d1fd4a921cc53dbca10a36916 (diff)
downloadseaweedfs-7ff2b0121dff4696b0811d396cd87d1d4f774e3e.tar.xz
seaweedfs-7ff2b0121dff4696b0811d396cd87d1d4f774e3e.zip
specify constant data type to uint64 instead of default int
fix https://github.com/chrislusf/seaweedfs/issues/1324
-rw-r--r--weed/storage/types/offset_5bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/types/offset_5bytes.go b/weed/storage/types/offset_5bytes.go
index f57e4f6d4..1db22d524 100644
--- a/weed/storage/types/offset_5bytes.go
+++ b/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) {