Merge pull request #9068 from Icinga/bugfix/icinga-db-runtime-state-2.13

Icinga DB: stream runtime state updates only to icinga:runtime:state
This commit is contained in:
Noah Hilverling 2021-11-10 15:51:46 +01:00 committed by GitHub
commit bb55946367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1078,8 +1078,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);
}
}