Merge pull request #9079 from Icinga/bugfix/idb-dump-buf-lost-2.13

Icinga DB init. dump: flush both buffered states and state checksums
This commit is contained in:
Noah Hilverling 2021-11-11 15:27:35 +01:00 committed by GitHub
commit c05866686f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,8 +313,10 @@ void IcingaDB::UpdateAllConfigObjects()
}
}
if (states.size() > 2)
if (states.size() > 2) {
transaction.emplace_back(std::move(states));
transaction.emplace_back(std::move(statesChksms));
}
if (transaction.size() > 1) {
transaction.push_back({"EXEC"});