mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-15 11:47:36 +00:00
fix file closing on windows
This commit is contained in:
@@ -164,6 +164,7 @@ func (m *BoltDbNeedleMap) Delete(key uint64, offset uint32) error {
|
||||
}
|
||||
|
||||
func (m *BoltDbNeedleMap) Close() {
|
||||
m.indexFile.Close()
|
||||
m.db.Close()
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,7 @@ func (m *LevelDbNeedleMap) Delete(key uint64, offset uint32) error {
|
||||
}
|
||||
|
||||
func (m *LevelDbNeedleMap) Close() {
|
||||
m.indexFile.Close()
|
||||
m.db.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user