From: Brian Warner Date: Wed, 10 Sep 2008 00:28:53 +0000 (-0700) Subject: mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares... X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/CLI.txt?a=commitdiff_plain;h=9676586732bb9c60cc954ead002ef10b7391aaa2;p=tahoe-lafs%2Ftahoe-lafs.git mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares < k, which is 'recoverable' not 'healthy') --- diff --git a/src/allmydata/mutable/checker.py b/src/allmydata/mutable/checker.py index 64266ad3..58da3cfd 100644 --- a/src/allmydata/mutable/checker.py +++ b/src/allmydata/mutable/checker.py @@ -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))