From 5b3e92309369f7a993c3fd65f17e2cf85fcfbfdb Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Wed, 18 Apr 2007 07:41:56 -0700 Subject: [PATCH] storageserver: ignore files in verifierdir whose filenames aren't of the right form for shares --- src/allmydata/storageserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2