Only call UpdateNextCheck() for soft states

refs #11336
This commit is contained in:
Michael Friedrich 2016-03-15 14:02:19 +01:00 committed by Gunnar Beutner
parent 8668eb65b5
commit e076e91706
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
/* If there was a OK -> NOT-OK state change for actively scheduled checks, /* If there was a OK -> NOT-OK state change for actively scheduled checks,
* update the next check time using the retry_interval. * update the next check time using the retry_interval.
* Important: Add the cluster message origin. */ * Important: Add the cluster message origin. */
UpdateNextCheck(origin); if (GetStateType() == StateTypeSoft)
UpdateNextCheck(origin);
} else { } else {
/* Reschedule the next check for passive check results. The side effect of /* Reschedule the next check for passive check results. The side effect of
* this is that for as long as we receive passive results for a service we * this is that for as long as we receive passive results for a service we