Merge pull request #8942 from Icinga/bugfix/idb-hashes

Icinga DB: keep state checksums consistent
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-07-29 21:54:58 +02:00 committed by GitHub
commit 40c186515b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1528,9 +1528,9 @@ void IcingaDB::SendStatusUpdate(const Checkable::Ptr& checkable)
tie(host, service) = GetHostService(checkable);
objectAttrs->Set("checksum", HashValue(objectAttrs));
objectAttrs->Set("redis_key", service ? "icinga:service:state" : "icinga:host:state");
objectAttrs->Set("runtime_type", "upsert");
objectAttrs->Set("checksum", HashValue(objectAttrs));
for (const Dictionary::Pair& kv : objectAttrs) {
streamadd.emplace_back(kv.first);