| 281 | } |
| 282 | |
| 283 | void 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 | |
| 295 | bool Dependency::IsAvailable(DependencyType dt) const |
| 296 | { |
nothing calls this directly
no test coverage detected