Browse Source

fix invalid point when delete collection

pull/763/head
alex8224 6 years ago
parent
commit
8d3f9c0b75
  1. 2
      weed/storage/volume_read_write.go

2
weed/storage/volume_read_write.go

@ -40,7 +40,7 @@ func (v *Volume) Destroy() (err error) {
err = fmt.Errorf("%s is read-only", v.dataFile.Name())
return
}
v.Close()
defer v.Close()
err = os.Remove(v.dataFile.Name())
if err != nil {
return

Loading…
Cancel
Save