mirror of https://github.com/Icinga/icinga2.git
Icinga DB: HDEL from *:state with same prio as HSET
... to ensure the right modifications order per key.
This commit is contained in:
parent
ae9b371128
commit
392fd8a75c
|
@ -1484,14 +1484,13 @@ void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
|
||||||
auto checkable (dynamic_pointer_cast<Checkable>(object));
|
auto checkable (dynamic_pointer_cast<Checkable>(object));
|
||||||
|
|
||||||
if (checkable) {
|
if (checkable) {
|
||||||
m_Rcon->FireAndForgetQueries({
|
m_Rcon->FireAndForgetQuery({
|
||||||
{
|
"ZREM",
|
||||||
"ZREM",
|
dynamic_pointer_cast<Service>(checkable) ? "icinga:nextupdate:service" : "icinga:nextupdate:host",
|
||||||
dynamic_pointer_cast<Service>(checkable) ? "icinga:nextupdate:service" : "icinga:nextupdate:host",
|
GetObjectIdentifier(checkable)
|
||||||
GetObjectIdentifier(checkable)
|
|
||||||
},
|
|
||||||
{"HDEL", m_PrefixConfigObject + typeName + ":state", objectKey},
|
|
||||||
}, Prio::CheckResult);
|
}, Prio::CheckResult);
|
||||||
|
|
||||||
|
m_Rcon->FireAndForgetQuery({"HDEL", m_PrefixConfigObject + typeName + ":state", objectKey}, Prio::RuntimeStateSync);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue