From: Brian Warner Date: Mon, 9 Mar 2009 03:55:16 +0000 (-0700) Subject: storage.expirer: oops, fix upgrade-handler code X-Git-Tag: allmydata-tahoe-1.4.0~70 X-Git-Url: https://git.rkrishnan.org/pf/content//%22file:/%22?a=commitdiff_plain;h=8708045a98a7b760caef2ed15e97947b919db95f;p=tahoe-lafs%2Ftahoe-lafs.git storage.expirer: oops, fix upgrade-handler code --- diff --git a/src/allmydata/storage/expirer.py b/src/allmydata/storage/expirer.py index 32913cb9..5769cb64 100644 --- a/src/allmydata/storage/expirer.py +++ b/src/allmydata/storage/expirer.py @@ -63,7 +63,7 @@ class LeaseCheckingCrawler(ShareCrawler): self.state.setdefault("cycle-to-date", so_far) # in case we upgrade the code while a cycle is in progress, update # the keys individually - for k in self.state["cycle-to-date"]: + for k in so_far: self.state["cycle-to-date"].setdefault(k, so_far[k]) # initialize history