]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares...
authorBrian Warner <warner@allmydata.com>
Wed, 10 Sep 2008 00:28:53 +0000 (17:28 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 10 Sep 2008 00:28:53 +0000 (17:28 -0700)
src/allmydata/mutable/checker.py

index 64266ad38a0b0b3afd8dec36ad2c3ce447133650..58da3cfde714b5bfb4b2803d2b82a6620fced052 100644 (file)
@@ -193,7 +193,7 @@ class MutableChecker:
             s = counters["count-shares-good"]
             k = counters["count-shares-needed"]
             N = counters["count-shares-expected"]
-            if s < k:
+            if s < N:
                 healthy = False
                 report.append("Unhealthy: best version has only %d shares "
                               "(encoding is %d-of-%d)" % (s, k, N))