Browse Source

Merge pull request #2727 from banjiaojuhao/filer_bug-fix_reset-byteBuffer

pull/2731/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
318d8affa8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/filer/filechunk_manifest.go

1
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 {

Loading…
Cancel
Save