mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
Chunks cache should be cleared before sync()
This commit is contained in:
parent
0629afc2dd
commit
fc5d57ed97
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ def sync(self):
|
|||
"""
|
||||
self.begin_txn()
|
||||
print 'Initializing cache...'
|
||||
self.chunks.clear()
|
||||
for id in self.store.list(NS_ARCHIVE_CHUNKS):
|
||||
magic, data, hash = self.keychain.decrypt(self.store.get(NS_ARCHIVE_CHUNKS, id))
|
||||
assert magic == PACKET_ARCHIVE_CHUNKS
|
||||
|
|
Loading…
Reference in a new issue