mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
Merge pull request #8942 from Icinga/bugfix/idb-hashes
Icinga DB: keep state checksums consistent
This commit is contained in:
commit
40c186515b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user