mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove index file
fix https://github.com/chrislusf/seaweedfs/issues/793
This commit is contained in:
parent
16634235c1
commit
f64dc7465b
|
@ -42,9 +42,7 @@ func (v *Volume) Destroy() (err error) {
|
||||||
}
|
}
|
||||||
v.Close()
|
v.Close()
|
||||||
os.Remove(v.FileName() + ".dat")
|
os.Remove(v.FileName() + ".dat")
|
||||||
if v.nm != nil {
|
os.Remove(v.FileName() + ".idx")
|
||||||
err = v.nm.Destroy()
|
|
||||||
}
|
|
||||||
os.Remove(v.FileName() + ".cpd")
|
os.Remove(v.FileName() + ".cpd")
|
||||||
os.Remove(v.FileName() + ".cpx")
|
os.Remove(v.FileName() + ".cpx")
|
||||||
os.Remove(v.FileName() + ".ldb")
|
os.Remove(v.FileName() + ".ldb")
|
||||||
|
|
Loading…
Reference in a new issue