diff options
| author | bingoohuang <bingoo.huang@gmail.com> | 2021-02-09 09:44:28 +0800 |
|---|---|---|
| committer | bingoohuang <bingoo.huang@gmail.com> | 2021-02-09 09:44:28 +0800 |
| commit | 9e06ef66b9bcca1c2cefc5cd38c34a20cb912c41 (patch) | |
| tree | 5ae0cd7e60fb87f98c7e5d2cd667e8d43ff98cf8 | |
| parent | 7256902fb0c3ac637d40d8ee91508216b42a6d60 (diff) | |
| download | seaweedfs-9e06ef66b9bcca1c2cefc5cd38c34a20cb912c41.tar.xz seaweedfs-9e06ef66b9bcca1c2cefc5cd38c34a20cb912c41.zip | |
fix renaming for 5bytes
| -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 05c6d2f39..b6181fc11 100644 --- a/weed/storage/types/offset_5bytes.go +++ b/weed/storage/types/offset_5bytes.go @@ -71,7 +71,7 @@ func ToOffset(offset int64) Offset { } } -func (offset Offset) ToAcutalOffset() (actualOffset int64) { +func (offset Offset) ToActualOffset() (actualOffset int64) { return (int64(offset.b0) + int64(offset.b1)<<8 + int64(offset.b2)<<16 + int64(offset.b3)<<24 + int64(offset.b4)<<32) * int64(NeedlePaddingSize) } |
