heal: Add info about the next background healing round (#9122)

- avoid setting last heal activity when starting self-healing

This can be confusing to users thinking that the self healing
cycle was already performed.

- add info about the next background healing round
This commit is contained in:
Anis Elleuch
2020-03-11 23:00:31 -07:00
committed by GitHub
parent 69b2aacf5a
commit fdf65aa9b9
4 changed files with 30 additions and 10 deletions

View File

@@ -274,6 +274,7 @@ func (adm *AdminClient) Heal(bucket, prefix string, healOpts HealOpts,
type BgHealState struct {
ScannedItemsCount int64
LastHealActivity time.Time
NextHealRound time.Time
}
// BackgroundHealStatus returns the background heal status of the