]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage.ReadBucketProxy: avoid double-start, this only affected tests
authorBrian Warner <warner@allmydata.com>
Wed, 18 Jun 2008 00:01:29 +0000 (17:01 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 18 Jun 2008 00:01:29 +0000 (17:01 -0700)
src/allmydata/storage.py

index b4582b07f16e18f1856b3fcbd4ae94481f9ce442..d5a406a0374e90701b0d70c7128e32164b6a25e8 100644 (file)
@@ -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):