erasure encode janitor duty

This commit is contained in:
Anand Babu (AB) Periasamy committed 2015-03-24 18:47:53 -07:00
1 parent 62b69048ec
commit fa9b1f341b
4 files changed
+99 -86

No files matched your search

+3 -1
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