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

Icinga DB: HDEL also icinga:checksum:*, not only icinga:*
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-07-23 16:42:09 +02:00 committed by GitHub
commit 284c591f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1475,6 +1475,7 @@ void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
m_Rcon->FireAndForgetQueries({ m_Rcon->FireAndForgetQueries({
{"HDEL", m_PrefixConfigObject + typeName, objectKey}, {"HDEL", m_PrefixConfigObject + typeName, objectKey},
{"HDEL", m_PrefixConfigCheckSum + typeName, objectKey},
{ {
"XADD", "icinga:runtime", "MAXLEN", "~", "1000000", "*", "XADD", "icinga:runtime", "MAXLEN", "~", "1000000", "*",
"redis_key", m_PrefixConfigObject + typeName, "id", objectKey, "runtime_type", "delete" "redis_key", m_PrefixConfigObject + typeName, "id", objectKey, "runtime_type", "delete"