diff --git a/lib/icingadb/icingadb-objects.cpp b/lib/icingadb/icingadb-objects.cpp index af11685e9..4d7e2f9f3 100644 --- a/lib/icingadb/icingadb-objects.cpp +++ b/lib/icingadb/icingadb-objects.cpp @@ -367,9 +367,9 @@ void IcingaDB::UpdateAllConfigObjects() std::map> ourContent; for (auto& source : ourContentRaw) { - upqObjectType.Enqueue([&]() { - auto& dest (ourContent[source.first]); + auto& dest (ourContent[source.first]); + upqObjectType.Enqueue([&]() { for (auto& hMSet : source.second) { for (decltype(hMSet.size()) i = 0, stop = hMSet.size() - 1u; i < stop; i += 2u) { dest.emplace(std::move(hMSet[i]), std::move(hMSet[i + 1u]));