Thomas Waldmann пре 7 месеци
родитељ
комит
9775adf52b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/borg/hashindex.pyx

+ 2 - 2
src/borg/hashindex.pyx

@@ -55,7 +55,7 @@ class ChunkIndex:
         self[key] = v._replace(refcount=refcount, size=size)
 
     def clear(self):
-        pass
+        self.ht.clear()
 
     @classmethod
     def read(cls, path, permit_compact=False):
@@ -153,7 +153,7 @@ class NSIndex1:
                 do_yield = key == marker
 
     def clear(self):
-        pass
+        self.ht.clear()
 
     @classmethod
     def read(cls, path, permit_compact=False):