Properly restart fresh disk healing when failed in some places (#16413)

This commit is contained in:
Anis Elleuch
2023-01-14 00:36:46 +01:00
committed by GitHub
parent c8e1154f1e
commit beb1924437
2 changed files with 5 additions and 3 deletions

View File

@@ -176,11 +176,12 @@ func (ahs *allHealState) getHealLocalDiskEndpoints() Endpoints {
return endpoints
}
func (ahs *allHealState) markDiskForHealing(ep Endpoint) {
// Set, in the memory, the state of the disk as currently healing or not
func (ahs *allHealState) setDiskHealingStatus(ep Endpoint, healing bool) {
ahs.Lock()
defer ahs.Unlock()
ahs.healLocalDisks[ep] = true
ahs.healLocalDisks[ep] = healing
}
func (ahs *allHealState) pushHealLocalDisks(healLocalDisks ...Endpoint) {