diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-03-06 07:25:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 07:25:11 -0800 |
| commit | 318d8affa8e9d2e36c1dbbb14956074cd23942d2 (patch) | |
| tree | 64e4757248bd7537e31cf2250113fc5b9e97b775 | |
| parent | c7e8ac18f00f2d4dad91745d4ad446ac396c48fb (diff) | |
| parent | a07c93f4dd41d4eba4551090543e22ee25f81cfa (diff) | |
| download | seaweedfs-318d8affa8e9d2e36c1dbbb14956074cd23942d2.tar.xz seaweedfs-318d8affa8e9d2e36c1dbbb14956074cd23942d2.zip | |
Merge pull request #2727 from banjiaojuhao/filer_bug-fix_reset-byteBuffer
| -rw-r--r-- | weed/filer/filechunk_manifest.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go index c74af226c..afd9add99 100644 --- a/weed/filer/filechunk_manifest.go +++ b/weed/filer/filechunk_manifest.go @@ -85,6 +85,7 @@ func ResolveOneChunkManifest(lookupFileIdFn wdclient.LookupFileIdFunctionType, c // IsChunkManifest bytesBuffer := bytesBufferPool.Get().(*bytes.Buffer) + bytesBuffer.Reset() defer bytesBufferPool.Put(bytesBuffer) err := fetchWholeChunk(bytesBuffer, lookupFileIdFn, chunk.GetFileIdString(), chunk.CipherKey, chunk.IsCompressed) if err != nil { |
