mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares < k, which is 'recoverable' not 'healthy')

This commit is contained in:
Brian Warner 2008-09-09 17:28:53 -07:00
parent f895e39d48
commit 9676586732

View 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))