mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 09:09:24 +08:00
fix ldb dir deleting
This commit is contained in:
@@ -131,5 +131,5 @@ func (m *LevelDbNeedleMap) Close() {
|
||||
func (m *LevelDbNeedleMap) Destroy() error {
|
||||
m.Close()
|
||||
os.Remove(m.indexFile.Name())
|
||||
return os.Remove(m.dbFileName)
|
||||
return os.RemoveAll(m.dbFileName)
|
||||
}
|
||||
|
Reference in New Issue
Block a user