Browse Source

Merge pull request #763 from alex8224/master

fix invalid point when delete collection
pull/769/head
Chris Lu 6 years ago
committed by GitHub
parent
commit
c77c4e3c60
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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