1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 05:35:58 +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) 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):