aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/storage/needle_map_boltdb.go1
-rw-r--r--weed/storage/needle_map_leveldb.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/weed/storage/needle_map_boltdb.go b/weed/storage/needle_map_boltdb.go
index cd15607bb..5e64c5199 100644
--- a/weed/storage/needle_map_boltdb.go
+++ b/weed/storage/needle_map_boltdb.go
@@ -164,6 +164,7 @@ func (m *BoltDbNeedleMap) Delete(key uint64, offset uint32) error {
}
func (m *BoltDbNeedleMap) Close() {
+ m.indexFile.Close()
m.db.Close()
}
diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go
index dfe3ccc0a..2d4ff4d71 100644
--- a/weed/storage/needle_map_leveldb.go
+++ b/weed/storage/needle_map_leveldb.go
@@ -126,6 +126,7 @@ func (m *LevelDbNeedleMap) Delete(key uint64, offset uint32) error {
}
func (m *LevelDbNeedleMap) Close() {
+ m.indexFile.Close()
m.db.Close()
}