From: Brian Warner Date: Wed, 18 Jun 2008 00:01:29 +0000 (-0700) Subject: storage.ReadBucketProxy: avoid double-start, this only affected tests X-Git-Tag: allmydata-tahoe-1.2.0~82 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/about.html?a=commitdiff_plain;h=8e52b3d97db6040c5b1c85eb4e939f22296676f2;p=tahoe-lafs%2Ftahoe-lafs.git storage.ReadBucketProxy: avoid double-start, this only affected tests --- diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index b4582b07..d5a406a0 100644 --- a/src/allmydata/storage.py +++ b/src/allmydata/storage.py @@ -1311,6 +1311,10 @@ class ReadBucketProxy: # TODO: for small shares, read the whole bucket in start() d = self._read(0, 0x24) d.addCallback(self._parse_offsets) + def _started(res): + self._started = True + return res + d.addCallback(_started) return d def _parse_offsets(self, data):