mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-29 10:59:02 +08:00
adjust error message
This commit is contained in:
@@ -180,7 +180,7 @@ func WriteDatFile(baseFileName string, datFileSize int64, shardFileNames []strin
|
|||||||
for shardId := 0; shardId < DataShardsCount; shardId++ {
|
for shardId := 0; shardId < DataShardsCount; shardId++ {
|
||||||
w, err := io.CopyN(datFile, inputFiles[shardId], ErasureCodingLargeBlockSize)
|
w, err := io.CopyN(datFile, inputFiles[shardId], ErasureCodingLargeBlockSize)
|
||||||
if w != 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
|
datFileSize -= ErasureCodingLargeBlockSize
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user