Merge pull request #555 from nail1208/patch-1

fix ldb dir deleting
This commit is contained in:
Chris Lu 2017-08-30 10:45:37 -07:00 committed by GitHub
commit 5409dfbb0f

View file

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