Browse Source

file open error

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

4
weed/storage/volume_vacuum.go

@ -181,13 +181,13 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI
oldIdxFile, err := os.Open(oldIdxFileName)
if err != nil {
return err
return fmt.Errorf("makeupDiff open %s failed: %v", oldIdxFileName, err)
}
defer oldIdxFile.Close()
oldDatFile, err := os.Open(oldDatFileName)
if err != nil {
return err
return fmt.Errorf("makeupDiff open %s failed: %v", oldDatFileName, err)
}
oldDatBackend := backend.NewDiskFile(oldDatFile)
defer oldDatBackend.Close()

Loading…
Cancel
Save