Skip to content

Commit 3d51332

Browse files
committed
Drop the now superfluous OnNextCheckUpdated signal
1 parent a077340 commit 3d51332

File tree

5 files changed

+0
-31
lines changed

5 files changed

+0
-31
lines changed

lib/checker/checkercomponent.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ void CheckerComponent::CheckThreadProc()
138138

139139
bool forced = checkable->GetForceNextCheck();
140140
bool check = true;
141-
bool notifyNextCheck = false;
142141
double nextCheck = -1;
143142

144143
if (!forced) {
@@ -147,7 +146,6 @@ void CheckerComponent::CheckThreadProc()
147146
<< "Skipping check for object '" << checkable->GetName() << "': Dependency failed.";
148147

149148
check = false;
150-
notifyNextCheck = true;
151149
}
152150

153151
Host::Ptr host;
@@ -184,7 +182,6 @@ void CheckerComponent::CheckThreadProc()
184182
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", nextCheck);
185183

186184
check = false;
187-
notifyNextCheck = true;
188185
}
189186
}
190187
}
@@ -203,11 +200,6 @@ void CheckerComponent::CheckThreadProc()
203200
checkable->UpdateNextCheck();
204201
}
205202

206-
if (notifyNextCheck) {
207-
// Trigger update event for Icinga DB
208-
Checkable::OnNextCheckUpdated(checkable);
209-
}
210-
211203
lock.lock();
212204

213205
continue;

lib/icinga/apiactions.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ Dictionary::Ptr ApiActions::RescheduleCheck(const ConfigObject::Ptr& object,
159159

160160
checkable->SetNextCheck(nextCheck);
161161

162-
/* trigger update event for DB IDO */
163-
Checkable::OnNextCheckUpdated(checkable);
164-
165162
return ApiActions::CreateResult(200, "Successfully rescheduled check for object '" + checkable->GetName() + "'.");
166163
}
167164

lib/icinga/checkable-check.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ boost::signals2::signal<void (const Checkable::Ptr&, const CheckResult::Ptr&, co
2222
boost::signals2::signal<void (const Checkable::Ptr&, const CheckResult::Ptr&, StateType, const MessageOrigin::Ptr&)> Checkable::OnStateChange;
2323
boost::signals2::signal<void (const Checkable::Ptr&, const CheckResult::Ptr&, std::set<Checkable::Ptr>, const MessageOrigin::Ptr&)> Checkable::OnReachabilityChanged;
2424
boost::signals2::signal<void (const Checkable::Ptr&, NotificationType, const CheckResult::Ptr&, const String&, const String&, const MessageOrigin::Ptr&)> Checkable::OnNotificationsRequested;
25-
boost::signals2::signal<void (const Checkable::Ptr&)> Checkable::OnNextCheckUpdated;
2625
boost::signals2::signal<void (const Checkable::Ptr&, double)> Checkable::OnRescheduleCheck;
2726

2827
Atomic<uint_fast64_t> Checkable::CurrentConcurrentChecks (0);

lib/icinga/checkable.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ class Checkable : public ObjectImpl<Checkable>
147147
bool, bool, double, double, const MessageOrigin::Ptr&)> OnAcknowledgementSet;
148148
static boost::signals2::signal<void (const Checkable::Ptr&, const String&, double, const MessageOrigin::Ptr&)> OnAcknowledgementCleared;
149149
static boost::signals2::signal<void (const Checkable::Ptr&, double)> OnFlappingChange;
150-
static boost::signals2::signal<void (const Checkable::Ptr&)> OnNextCheckUpdated;
151150
/**
152151
* Think again! Are you really sure you want to subscribe to this signal?
153152
*

lib/icinga/externalcommandprocessor.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,6 @@ void ExternalCommandProcessor::ScheduleHostCheck(double, const std::vector<Strin
392392
planned_check = Utility::GetTime();
393393

394394
host->SetNextCheck(planned_check);
395-
396-
/* trigger update event for DB IDO */
397-
Checkable::OnNextCheckUpdated(host);
398395
}
399396

400397
void ExternalCommandProcessor::ScheduleForcedHostCheck(double, const std::vector<String>& arguments)
@@ -409,9 +406,6 @@ void ExternalCommandProcessor::ScheduleForcedHostCheck(double, const std::vector
409406

410407
host->SetForceNextCheck(true);
411408
host->SetNextCheck(Convert::ToDouble(arguments[1]));
412-
413-
/* trigger update event for DB IDO */
414-
Checkable::OnNextCheckUpdated(host);
415409
}
416410

417411
void ExternalCommandProcessor::ScheduleSvcCheck(double, const std::vector<String>& arguments)
@@ -437,9 +431,6 @@ void ExternalCommandProcessor::ScheduleSvcCheck(double, const std::vector<String
437431
planned_check = Utility::GetTime();
438432

439433
service->SetNextCheck(planned_check);
440-
441-
/* trigger update event for DB IDO */
442-
Checkable::OnNextCheckUpdated(service);
443434
}
444435

445436
void ExternalCommandProcessor::ScheduleForcedSvcCheck(double, const std::vector<String>& arguments)
@@ -454,9 +445,6 @@ void ExternalCommandProcessor::ScheduleForcedSvcCheck(double, const std::vector<
454445

455446
service->SetForceNextCheck(true);
456447
service->SetNextCheck(Convert::ToDouble(arguments[2]));
457-
458-
/* trigger update event for DB IDO */
459-
Checkable::OnNextCheckUpdated(service);
460448
}
461449

462450
void ExternalCommandProcessor::EnableHostCheck(double, const std::vector<String>& arguments)
@@ -538,9 +526,6 @@ void ExternalCommandProcessor::ScheduleForcedHostSvcChecks(double, const std::ve
538526

539527
service->SetNextCheck(planned_check);
540528
service->SetForceNextCheck(true);
541-
542-
/* trigger update event for DB IDO */
543-
Checkable::OnNextCheckUpdated(service);
544529
}
545530
}
546531

@@ -568,9 +553,6 @@ void ExternalCommandProcessor::ScheduleHostSvcChecks(double, const std::vector<S
568553
<< "Rescheduling next check for service '" << service->GetName() << "'";
569554

570555
service->SetNextCheck(planned_check);
571-
572-
/* trigger update event for DB IDO */
573-
Checkable::OnNextCheckUpdated(service);
574556
}
575557
}
576558

0 commit comments

Comments
 (0)