mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #763 from alex8224/master
fix invalid point when delete collection
This commit is contained in:
commit
c77c4e3c60
|
@ -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…
Reference in a new issue