Browse Source

fix: encode small chunk return error maybe have some bug.

pull/2827/head
justin 3 years ago
parent
commit
d51a724101
  1. 2
      weed/storage/erasure_coding/ec_encoder.go

2
weed/storage/erasure_coding/ec_encoder.go

@ -220,7 +220,7 @@ func encodeDatFile(remainingSize int64, err error, baseFileName string, bufferSi
processedSize += largeBlockSize * DataShardsCount processedSize += largeBlockSize * DataShardsCount
} }
for remainingSize > 0 { for remainingSize > 0 {
encodeData(file, enc, processedSize, smallBlockSize, buffers, outputs)
err = encodeData(file, enc, processedSize, smallBlockSize, buffers, outputs)
if err != nil { if err != nil {
return fmt.Errorf("failed to encode small chunk data: %v", err) return fmt.Errorf("failed to encode small chunk data: %v", err)
} }

Loading…
Cancel
Save