mirror of
https://github.com/minio/minio.git
synced 2025-11-29 13:28:17 -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
@@ -17,8 +17,7 @@
|
||||
package main
|
||||
|
||||
// getDataBlocks - fetches the data block only part of the input encoded blocks.
|
||||
func getDataBlocks(enBlocks [][]byte, dataBlocks int, curBlockSize int) []byte {
|
||||
var data []byte
|
||||
func getDataBlocks(enBlocks [][]byte, dataBlocks int, curBlockSize int) (data []byte) {
|
||||
for _, block := range enBlocks[:dataBlocks] {
|
||||
data = append(data, block...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user