Re-schedule checks when re-assigning them to a different checker.

This commit is contained in:
Gunnar Beutner 2013-01-25 13:09:23 +01:00
parent b79f966b53
commit 2f98f56119
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ void DelegationComponent::DelegationTimerHandler(void)
service->SetChecker(candidate->GetName());
histogram[candidate]++;
/* reschedule the service; this avoids "check floods"
* when a lot of services are re-assigned that haven't
* been checked recently. */
service->UpdateNextCheck();
delegated++;
break;