mirror of
https://github.com/minio/minio.git
synced 2025-11-12 14:51:36 -05:00
XL/erasure: Reset dataBlocks to reduce the memory usage. (#1749)
Fixes #1748
This commit is contained in:
committed by
Harshavardhana
parent
1e393c6c5b
commit
a97230dd56
@@ -147,6 +147,9 @@ func (e erasure) ReadFile(volume, path string, startOffset int64, totalSize int6
|
||||
return
|
||||
}
|
||||
|
||||
// Reset dataBlocks to relenquish memory.
|
||||
dataBlocks = nil
|
||||
|
||||
// Reset offset to '0' to read rest of the blocks.
|
||||
startOffset = int64(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user