remove index file

fix https://github.com/chrislusf/seaweedfs/issues/793
This commit is contained in:
Chris Lu 2018-12-17 20:33:32 -08:00
parent 16634235c1
commit f64dc7465b

View file

@ -42,9 +42,7 @@ func (v *Volume) Destroy() (err error) {
}
v.Close()
os.Remove(v.FileName() + ".dat")
if v.nm != nil {
err = v.nm.Destroy()
}
os.Remove(v.FileName() + ".idx")
os.Remove(v.FileName() + ".cpd")
os.Remove(v.FileName() + ".cpx")
os.Remove(v.FileName() + ".ldb")