From 9676586732bb9c60cc954ead002ef10b7391aaa2 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 9 Sep 2008 17:28:53 -0700 Subject: [PATCH] mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares < k, which is 'recoverable' not 'healthy') --- src/allmydata/mutable/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.45.2