mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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
|
return
|
||||||
}
|
}
|
||||||
err = v.nm.Destroy()
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue