Browse Source

Chunks cache should be cleared before sync()

Jonas Borgström 14 years ago
parent
commit
fc5d57ed97
1 changed files with 1 additions and 0 deletions
  1. 1 0
      darc/cache.py

+ 1 - 0
darc/cache.py

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