mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
weed/storage/erasure_coding: remove unused err from encodeDatFile() signature
This commit is contained in:
parent
c3810520fc
commit
a879e1bbb5
|
@ -79,7 +79,7 @@ func generateEcFiles(baseFileName string, bufferSize int, largeBlockSize int64,
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(0).Infof("encodeDatFile %s.dat size:%d", baseFileName, fi.Size())
|
glog.V(0).Infof("encodeDatFile %s.dat size:%d", baseFileName, fi.Size())
|
||||||
err = encodeDatFile(fi.Size(), err, baseFileName, bufferSize, largeBlockSize, file, smallBlockSize)
|
err = encodeDatFile(fi.Size(), baseFileName, bufferSize, largeBlockSize, file, smallBlockSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("encodeDatFile: %v", err)
|
return fmt.Errorf("encodeDatFile: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -195,7 +195,7 @@ func encodeDataOneBatch(file *os.File, enc reedsolomon.Encoder, startOffset, blo
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func encodeDatFile(remainingSize int64, err error, baseFileName string, bufferSize int, largeBlockSize int64, file *os.File, smallBlockSize int64) error {
|
func encodeDatFile(remainingSize int64, baseFileName string, bufferSize int, largeBlockSize int64, file *os.File, smallBlockSize int64) error {
|
||||||
|
|
||||||
var processedSize int64
|
var processedSize int64
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue