aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding/ec_decoder.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-11-19 14:16:00 -0800
committerchrislu <chris.lu@gmail.com>2024-11-19 14:16:06 -0800
commit96f1a2e01a579184cf614a5f42194fdcc53c9b2d (patch)
tree53d783daa117d9a864c63a3f58d790580e8b0b25 /weed/storage/erasure_coding/ec_decoder.go
parentbb37886f6a267d320dd0daf2f9c5e4c1d4140462 (diff)
downloadseaweedfs-96f1a2e01a579184cf614a5f42194fdcc53c9b2d.tar.xz
seaweedfs-96f1a2e01a579184cf614a5f42194fdcc53c9b2d.zip
adjust error message
Diffstat (limited to 'weed/storage/erasure_coding/ec_decoder.go')
-rw-r--r--weed/storage/erasure_coding/ec_decoder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/erasure_coding/ec_decoder.go b/weed/storage/erasure_coding/ec_decoder.go
index a94ca1fe3..a1d929f6c 100644
--- a/weed/storage/erasure_coding/ec_decoder.go
+++ b/weed/storage/erasure_coding/ec_decoder.go
@@ -180,7 +180,7 @@ func WriteDatFile(baseFileName string, datFileSize int64, shardFileNames []strin
for shardId := 0; shardId < DataShardsCount; shardId++ {
w, err := io.CopyN(datFile, inputFiles[shardId], ErasureCodingLargeBlockSize)
if w != ErasureCodingLargeBlockSize {
- return fmt.Errorf("copy %s large block %d: %v", baseFileName, shardId, err)
+ return fmt.Errorf("copy %s large block on shardId %d: %v", baseFileName, shardId, err)
}
datFileSize -= ErasureCodingLargeBlockSize
}