diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-15 03:11:34 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-15 03:11:34 -0700 |
| commit | f9e3e7d1c4a99cb7ce3cee4a5f405eb6ca210504 (patch) | |
| tree | 0955ddc73b059181073f98b1aac3dfadce93b6dc /weed/util/chunk_cache/chunk_cache_on_disk.go | |
| parent | 896a85d6e4858a48018fcb7fc41026fcb3861dea (diff) | |
| parent | e0064ae0979f32ec73247029a723939f81086d29 (diff) | |
| download | seaweedfs-f9e3e7d1c4a99cb7ce3cee4a5f405eb6ca210504.tar.xz seaweedfs-f9e3e7d1c4a99cb7ce3cee4a5f405eb6ca210504.zip | |
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/util/chunk_cache/chunk_cache_on_disk.go')
| -rw-r--r-- | weed/util/chunk_cache/chunk_cache_on_disk.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/chunk_cache/chunk_cache_on_disk.go b/weed/util/chunk_cache/chunk_cache_on_disk.go index 9252f99eb..3fc9cf0b4 100644 --- a/weed/util/chunk_cache/chunk_cache_on_disk.go +++ b/weed/util/chunk_cache/chunk_cache_on_disk.go @@ -128,7 +128,7 @@ func (v *ChunkCacheVolume) getNeedleSlice(key types.NeedleId, offset, length uin } wanted := min(int(length), int(nv.Size)-int(offset)) if wanted < 0 { - // should never happen, but better than panicing + // should never happen, but better than panicking return nil, ErrorOutOfBounds } data := make([]byte, wanted) @@ -151,7 +151,7 @@ func (v *ChunkCacheVolume) readNeedleSliceAt(data []byte, key types.NeedleId, of } wanted := min(len(data), int(nv.Size)-int(offset)) if wanted < 0 { - // should never happen, but better than panicing + // should never happen, but better than panicking return 0, ErrorOutOfBounds } if n, err = v.DataBackend.ReadAt(data, nv.Offset.ToActualOffset()+int64(offset)); err != nil { |
