mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 07:43:06 +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)
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue