mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 21:39:02 +08:00
clean remove all left over files when deleting a collection
This commit is contained in:
parent
d361a1ddf5
commit
ac793a3c5a
@ -46,6 +46,10 @@ func (v *Volume) Destroy() (err error) {
|
||||
return
|
||||
}
|
||||
err = v.nm.Destroy()
|
||||
os.Remove(v.FileName() + ".cpd")
|
||||
os.Remove(v.FileName() + ".cpx")
|
||||
os.Remove(v.FileName() + ".ldb")
|
||||
os.Remove(v.FileName() + ".bdb")
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user