Browse Source

fix file closing on windows

pull/667/head
Chris Lu 7 years ago
parent
commit
0467195f07
  1. 1
      weed/storage/needle_map_boltdb.go
  2. 1
      weed/storage/needle_map_leveldb.go

1
weed/storage/needle_map_boltdb.go

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

1
weed/storage/needle_map_leveldb.go

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

Loading…
Cancel
Save