mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
mutable checker: oops, fix redefinition of 'healthy' (numshares < N, not numshares < k, which is 'recoverable' not 'healthy')
This commit is contained in:
parent
f895e39d48
commit
9676586732
@ -193,7 +193,7 @@ class MutableChecker:
|
|||||||
s = counters["count-shares-good"]
|
s = counters["count-shares-good"]
|
||||||
k = counters["count-shares-needed"]
|
k = counters["count-shares-needed"]
|
||||||
N = counters["count-shares-expected"]
|
N = counters["count-shares-expected"]
|
||||||
if s < k:
|
if s < N:
|
||||||
healthy = False
|
healthy = False
|
||||||
report.append("Unhealthy: best version has only %d shares "
|
report.append("Unhealthy: best version has only %d shares "
|
||||||
"(encoding is %d-of-%d)" % (s, k, N))
|
"(encoding is %d-of-%d)" % (s, k, N))
|
||||||
|
Loading…
Reference in New Issue
Block a user