erasure encode janitor duty

This commit is contained in:
Anand Babu (AB) Periasamy
2015-03-24 18:44:21 -07:00
parent 62b69048ec
commit fa9b1f341b
4 changed files with 99 additions and 86 deletions

View File

@@ -75,7 +75,9 @@ func erasureReader(readers []io.ReadCloser, donutMetadata map[string]string, wri
if blockSize < totalLeft {
curBlockSize = blockSize
}
curChunkSize := erasure.GetEncodedChunkLen(curBlockSize, uint8(k))
curChunkSize := erasure.GetEncodedBlockLen(curBlockSize, uint8(k))
encodedBytes := make([][]byte, 16)
for i, reader := range readers {
var bytesBuffer bytes.Buffer