1
0
Fork 0
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:
Jonas Borgström 2011-06-18 11:25:29 +02:00
parent 0629afc2dd
commit fc5d57ed97

View file

@ -122,6 +122,7 @@ def sync(self):
""" """
self.begin_txn() self.begin_txn()
print 'Initializing cache...' print 'Initializing cache...'
self.chunks.clear()
for id in self.store.list(NS_ARCHIVE_CHUNKS): for id in self.store.list(NS_ARCHIVE_CHUNKS):
magic, data, hash = self.keychain.decrypt(self.store.get(NS_ARCHIVE_CHUNKS, id)) magic, data, hash = self.keychain.decrypt(self.store.get(NS_ARCHIVE_CHUNKS, id))
assert magic == PACKET_ARCHIVE_CHUNKS assert magic == PACKET_ARCHIVE_CHUNKS