Browse Source
Merge pull request #2727 from banjiaojuhao/filer_bug-fix_reset-byteBuffer
pull/2731/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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 { |
|
|
|