MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Stop

Method Stop

lib/icinga/dependency.cpp:283–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void Dependency::Stop(bool runtimeRemoved)
284{
285 ObjectImpl<Dependency>::Stop(runtimeRemoved);
286
287 // Icinga DB will implicitly send config updates for the parent Checkable to refresh its affects_children and
288 // affected_children columns when removing the dependency from the child Checkable. So, we need to remove the
289 // dependency from the parent Checkable first, otherwise the config update of the parent Checkable will change
290 // nothing at all.
291 GetParent()->RemoveReverseDependency(this);
292 GetChild()->RemoveDependency(this, runtimeRemoved);
293}
294
295bool Dependency::IsAvailable(DependencyType dt) const
296{

Callers

nothing calls this directly

Calls 2

RemoveDependencyMethod · 0.45

Tested by

no test coverage detected