mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-31 02:12:57 +08:00
filer: reset bytesBuffer before use
This commit is contained in:
parent
c7e8ac18f0
commit
a07c93f4dd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user