mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Add listing block reuse (#15579)
When streaming results, pool metadata slices when sent.
This commit is contained in:
parent
afbb63a197
commit
037fe4afdc
@ -184,6 +184,9 @@ func (w *metacacheWriter) stream() (chan<- metaCacheEntry, error) {
|
||||
continue
|
||||
}
|
||||
err = w.mw.WriteBytes(o.metadata)
|
||||
if w.reuseBlocks || o.reusable {
|
||||
metaDataPoolPut(o.metadata)
|
||||
}
|
||||
if err != nil {
|
||||
w.streamErr = err
|
||||
continue
|
||||
|
@ -168,7 +168,7 @@ func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writ
|
||||
entries[i] = entries[i][:len(entry)-1]
|
||||
continue
|
||||
}
|
||||
// Do do not retain the file.
|
||||
// Do not retain the file.
|
||||
entries[i] = ""
|
||||
|
||||
if contextCanceled(ctx) {
|
||||
|
Loading…
Reference in New Issue
Block a user