mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix ldb dir deleting
This commit is contained in:
parent
3288d729ae
commit
a2112e1be0
|
@ -131,5 +131,5 @@ func (m *LevelDbNeedleMap) Close() {
|
||||||
func (m *LevelDbNeedleMap) Destroy() error {
|
func (m *LevelDbNeedleMap) Destroy() error {
|
||||||
m.Close()
|
m.Close()
|
||||||
os.Remove(m.indexFile.Name())
|
os.Remove(m.indexFile.Name())
|
||||||
return os.Remove(m.dbFileName)
|
return os.RemoveAll(m.dbFileName)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue