mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Drop obsolete delete query on config dump
This commit is contained in:
parent
e31679b2de
commit
48f1ce215b
@ -113,6 +113,7 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
||||
|
||||
ExecuteQuery({ "MULTI" });
|
||||
|
||||
/* Delete obsolete object keys first. */
|
||||
auto& deleteQuery = deleteQueries[type.get()];
|
||||
|
||||
if (deleteQuery.size() > 1)
|
||||
@ -120,9 +121,6 @@ void RedisWriter::UpdateAllConfigObjects(void)
|
||||
|
||||
String typeName = type->GetName().ToLower();
|
||||
|
||||
/* replace into aka delete insert is faster than a full diff */
|
||||
ExecuteQuery({ "DEL", m_PrefixConfigObject + typeName, m_PrefixConfigCheckSum + typeName, m_PrefixStatusObject + typeName });
|
||||
|
||||
/* fetch all objects and dump them */
|
||||
for (const ConfigObject::Ptr& object : ctype->GetObjects()) {
|
||||
SendConfigUpdate(object, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user