Merge pull request #763 from alex8224/master

fix invalid point when delete collection
This commit is contained in:
Chris Lu 2018-11-05 08:48:32 -08:00 committed by GitHub
commit c77c4e3c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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