1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +00:00

implement .clear

This commit is contained in:
Thomas Waldmann 2024-10-26 19:09:12 +02:00
parent 68143d6f99
commit 9775adf52b
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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):