fix file closing on windows

This commit is contained in:
Chris Lu 2018-06-13 00:36:51 -07:00
parent 4433b4c006
commit 0467195f07
2 changed files with 2 additions and 0 deletions

View file

@ -164,6 +164,7 @@ func (m *BoltDbNeedleMap) Delete(key uint64, offset uint32) error {
}
func (m *BoltDbNeedleMap) Close() {
m.indexFile.Close()
m.db.Close()
}

View file

@ -126,6 +126,7 @@ func (m *LevelDbNeedleMap) Delete(key uint64, offset uint32) error {
}
func (m *LevelDbNeedleMap) Close() {
m.indexFile.Close()
m.db.Close()
}