mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
return file open error
This commit is contained in:
parent
45dba088cd
commit
dc0bc48257
|
@ -180,9 +180,15 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI
|
||||||
var indexSize int64
|
var indexSize int64
|
||||||
|
|
||||||
oldIdxFile, err := os.Open(oldIdxFileName)
|
oldIdxFile, err := os.Open(oldIdxFileName)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
defer oldIdxFile.Close()
|
defer oldIdxFile.Close()
|
||||||
|
|
||||||
oldDatFile, err := os.Open(oldDatFileName)
|
oldDatFile, err := os.Open(oldDatFileName)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
oldDatBackend := backend.NewDiskFile(oldDatFile)
|
oldDatBackend := backend.NewDiskFile(oldDatFile)
|
||||||
defer oldDatBackend.Close()
|
defer oldDatBackend.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue