mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 05:35:58 +00:00
implement .clear
This commit is contained in:
parent
68143d6f99
commit
9775adf52b
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class ChunkIndex:
|
||||||
self[key] = v._replace(refcount=refcount, size=size)
|
self[key] = v._replace(refcount=refcount, size=size)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
pass
|
self.ht.clear()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def read(cls, path, permit_compact=False):
|
def read(cls, path, permit_compact=False):
|
||||||
|
@ -153,7 +153,7 @@ class NSIndex1:
|
||||||
do_yield = key == marker
|
do_yield = key == marker
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
pass
|
self.ht.clear()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def read(cls, path, permit_compact=False):
|
def read(cls, path, permit_compact=False):
|
||||||
|
|
Loading…
Reference in a new issue