mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
immutable/checker: include a summary (with 'Healthy' or 'Not Healthy' and a count of shares) in the checker results
This commit is contained in:
parent
7ee336b274
commit
f8de336039
@ -227,8 +227,13 @@ class Checker(log.PrefixingLogMixin):
|
||||
assert len(verifiedshares) <= self._verifycap.total_shares, (verifiedshares.keys(), self._verifycap.total_shares)
|
||||
if len(verifiedshares) == self._verifycap.total_shares:
|
||||
cr.set_healthy(True)
|
||||
cr.set_summary("Healthy")
|
||||
else:
|
||||
cr.set_healthy(False)
|
||||
cr.set_summary("Not Healthy: %d shares (enc %d-of-%d)" %
|
||||
(len(verifiedshares),
|
||||
self._verifycap.needed_shares,
|
||||
self._verifycap.total_shares))
|
||||
if len(verifiedshares) >= self._verifycap.needed_shares:
|
||||
cr.set_recoverable(True)
|
||||
d['count-recoverable-versions'] = 1
|
||||
|
Loading…
Reference in New Issue
Block a user