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 @@ class Cache(object):
"""
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