From 5e40272785b619bd2de3108cf8027d9eb76c6bfa Mon Sep 17 00:00:00 2001 From: Rob Kinninmont Date: Fri, 1 Dec 2006 02:48:27 -0700 Subject: [PATCH] prevent reading unfinished buckets --- allmydata/bucketstore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index 0348b5ac..84b7083a 100644 --- a/allmydata/bucketstore.py +++ b/allmydata/bucketstore.py @@ -41,6 +41,7 @@ class BucketStore(service.MultiService, Referenceable): # for now, only returns those created by this process, in this run bucket = self._buckets.get(verifierid) if bucket: + precondition(bucket.is_complete()) return BucketReader(bucket) elif os.path.exists(self._get_bucket_dir(verifierid)): bucket_dir = self._get_bucket_dir(verifierid) -- 2.45.2