mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix invalid point when delete collection
This commit is contained in:
parent
1a64a817ac
commit
8d3f9c0b75
|
@ -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