Browse Source

return file open error

pull/1650/head
Chris Lu 4 years ago
parent
commit
dc0bc48257
  1. 6
      weed/storage/volume_vacuum.go

6
weed/storage/volume_vacuum.go

@ -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…
Cancel
Save