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())
|
err = fmt.Errorf("%s is read-only", v.dataFile.Name())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
v.Close()
|
defer v.Close()
|
||||||
err = os.Remove(v.dataFile.Name())
|
err = os.Remove(v.dataFile.Name())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue