Browse Source
Merge pull request #2827 from leyou240/master
fix: encode small chunk return error maybe have some bug.
pull/2831/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/storage/erasure_coding/ec_encoder.go
|
|
@ -220,7 +220,7 @@ func encodeDatFile(remainingSize int64, err error, baseFileName string, bufferSi |
|
|
|
processedSize += largeBlockSize * DataShardsCount |
|
|
|
} |
|
|
|
for remainingSize > 0 { |
|
|
|
encodeData(file, enc, processedSize, smallBlockSize, buffers, outputs) |
|
|
|
err = encodeData(file, enc, processedSize, smallBlockSize, buffers, outputs) |
|
|
|
if err != nil { |
|
|
|
return fmt.Errorf("failed to encode small chunk data: %v", err) |
|
|
|
} |
|
|
|