Browse Source

Merge pull request #555 from nail1208/patch-1

fix ldb dir deleting
pull/558/head
Chris Lu 7 years ago
committed by GitHub
parent
commit
5409dfbb0f
  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 {
m.Close()
os.Remove(m.indexFile.Name())
return os.Remove(m.dbFileName)
return os.RemoveAll(m.dbFileName)
}
Loading…
Cancel
Save