mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-31 09:20:50 +01:00
fix file closing on windows
This commit is contained in:
1 parent
4433b4c006
commit
0467195f07
2 files changed
+2
No files matched your search
@@ -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