janitor duty on erasure-decode

This commit is contained in:
Anand Babu (AB) Periasamy
2015-03-25 17:41:41 -07:00
parent db2ac35da5
commit bd39768de2
3 changed files with 52 additions and 40 deletions

View File

@@ -161,7 +161,7 @@ func (e *Encoder) Encode(inputData []byte) (encodedBlocks [][]byte, err error) {
}
// Extend inputData buffer to accommodate coded parity blocks
if true { // create a temporary scope to trigger garbage collect
{ // Local Scope
encodedParityBlocksLen := encodedBlockLen * m
parityBlocks := make([]byte, encodedParityBlocksLen)
inputData = append(inputData, parityBlocks...)