Browse Source

fix ldb dir deleting

pull/555/head
Yang Pengcheng 7 years ago
committed by GitHub
parent
commit
a2112e1be0
  1. 2
      weed/storage/needle_map_leveldb.go

2
weed/storage/needle_map_leveldb.go

@ -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…
Cancel
Save