diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-05-19 07:55:23 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-05-19 07:55:23 -0700 |
| commit | 7ff2b0121dff4696b0811d396cd87d1d4f774e3e (patch) | |
| tree | ebb19b3098c47a807bea573ef6bd3d063d3f35f3 | |
| parent | 11b33c07606b1c2d1fd4a921cc53dbca10a36916 (diff) | |
| download | seaweedfs-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.go | 2 |
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) { |
