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

@@ -575,8 +575,6 @@ func (h *healSequence) queueHealTask(path string, healType madmin.HealItemType)
}
func (h *healSequence) healItemsFromSourceCh() error {
h.lastHealActivity = UTCNow()
bucketsOnly := true // heal buckets only, not objects.
if err := h.healItems(bucketsOnly); err != nil {
logger.LogIf(h.ctx, err)