fix ldb dir deleting

This commit is contained in:
Yang Pengcheng 2017-08-30 22:55:03 +08:00 committed by GitHub
parent 3288d729ae
commit a2112e1be0

View file

@ -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)
} }