From 8e52b3d97db6040c5b1c85eb4e939f22296676f2 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 17 Jun 2008 17:01:29 -0700 Subject: [PATCH] storage.ReadBucketProxy: avoid double-start, this only affected tests --- src/allmydata/storage.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.45.2