]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storageserver: ignore files in verifierdir whose filenames aren't of the right form...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 18 Apr 2007 14:41:56 +0000 (07:41 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 18 Apr 2007 14:41:56 +0000 (07:41 -0700)
src/allmydata/storageserver.py

index 5bab5e26bac793b0a702df769622549f823912f0..136c5dc56402e2ea88838f7ba6b0372f420697dd 100644 (file)
@@ -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