From: Zooko O'Whielacronx Date: Wed, 18 Apr 2007 14:41:56 +0000 (-0700) Subject: storageserver: ignore files in verifierdir whose filenames aren't of the right form... X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/index.php?a=commitdiff_plain;h=5b3e92309369f7a993c3fd65f17e2cf85fcfbfdb;p=tahoe-lafs%2Ftahoe-lafs.git storageserver: ignore files in verifierdir whose filenames aren't of the right form for shares --- diff --git a/src/allmydata/storageserver.py b/src/allmydata/storageserver.py index 5bab5e26..136c5dc5 100644 --- a/src/allmydata/storageserver.py +++ b/src/allmydata/storageserver.py @@ -129,8 +129,8 @@ class StorageServer(service.MultiService, Referenceable): verifierdir = os.path.join(self.storedir, idlib.b2a(verifierid)) try: for f in os.listdir(verifierdir): - _assert(NUM_RE.match(f), f) - bucketreaders[int(f)] = BucketReader(os.path.join(verifierdir, f)) + if NUM_RE.match(f): + bucketreaders[int(f)] = BucketReader(os.path.join(verifierdir, f)) except OSError: # Commonly caused by there being no buckets at all. pass