Icinga DB: stream runtime state updates only to icinga:runtime:state

... where they belong to, not to icinga:runtime.
This commit is contained in:
Alexander A. Klimov 2021-10-18 18:11:30 +02:00 committed by Noah Hilverling
parent d31c2f156f
commit 51b230f69b

View File

@ -1105,8 +1105,7 @@ void IcingaDB::SendConfigUpdate(const ConfigObject::Ptr& object, bool runtimeUpd
m_Rcon->FireAndForgetQuery({"HSET", m_PrefixConfigCheckSum + typeName + ":state", objectKey, JsonEncode(new Dictionary({{"checksum", checksum}}))}, Prio::RuntimeStateSync);
if (runtimeUpdate) {
state->Set("checksum", checksum);
AddObjectDataToRuntimeUpdates(runtimeUpdates, objectKey, m_PrefixConfigObject + typeName + ":state", state);
SendStatusUpdate(checkable);
}
}