Merge pull request #8919 from Icinga/bugfix/idb-del-state-chksm

Icinga DB: HDEL also icinga:checksum:*:state, not only icinga:*:state
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-07-29 11:08:33 +02:00 committed by GitHub
commit 5923950e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1496,7 +1496,10 @@ void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
GetObjectIdentifier(checkable)
}, Prio::CheckResult);
m_Rcon->FireAndForgetQuery({"HDEL", m_PrefixConfigObject + typeName + ":state", objectKey}, Prio::RuntimeStateSync);
m_Rcon->FireAndForgetQueries({
{"HDEL", m_PrefixConfigObject + typeName + ":state", objectKey},
{"HDEL", m_PrefixConfigCheckSum + typeName + ":state", objectKey}
}, Prio::RuntimeStateSync);
}
}