aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-07 23:03:03 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-07 23:03:03 -0800
commita83302113214748fe3600510c8835b6d88f3496c (patch)
tree1cee9d4beed49b321812fb2b32917b4ea7407bc9
parent5e4b5109ddaff1fc7c09cc107081c04aaf0056f6 (diff)
downloadseaweedfs-a83302113214748fe3600510c8835b6d88f3496c.tar.xz
seaweedfs-a83302113214748fe3600510c8835b6d88f3496c.zip
fix refactoring left over2.24
-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 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)
}