fix: faster healing when disk is replaced. (#11520)

This commit is contained in:
Klaus Post
2021-02-18 11:06:54 -08:00
committed by GitHub
parent 0f5ca83418
commit c5b2a8441b
6 changed files with 81 additions and 53 deletions

View File

@@ -662,6 +662,13 @@ func (h *healSequence) healSequenceStart(objAPI ObjectLayer) {
}
}
func (h *healSequence) logHeal(healType madmin.HealItemType) {
h.mutex.Lock()
h.scannedItemsMap[healType]++
h.lastHealActivity = UTCNow()
h.mutex.Unlock()
}
func (h *healSequence) queueHealTask(source healSource, healType madmin.HealItemType) error {
globalHealConfigMu.Lock()
opts := globalHealConfig