From fc5d57ed97f1cf896cf4fecdbc8d99b8c51f73a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sat, 18 Jun 2011 11:25:29 +0200 Subject: [PATCH] Chunks cache should be cleared before sync() --- darc/cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/darc/cache.py b/darc/cache.py index 9f1559d79..d7753c96f 100644 --- a/darc/cache.py +++ b/darc/cache.py @@ -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