MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CleanUpExecuteQuery

Method CleanUpExecuteQuery

lib/db_ido_mysql/idomysqlconnection.cpp:1231–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231void IdoMysqlConnection::CleanUpExecuteQuery(const String& table, const String& time_column, double max_age)
1232{
1233 if (IsPaused())
1234 return;
1235
1236#ifdef I2_DEBUG /* I2_DEBUG */
1237 Log(LogDebug, "IdoMysqlConnection")
1238 << "Rescheduling cleanup query for table '" << table << "' and column '"
1239 << time_column << "'. max_age is set to '" << max_age << "'.";
1240#endif /* I2_DEBUG */
1241
1242 IncreasePendingQueries(1);
1243 m_QueryQueue.Enqueue([this, table, time_column, max_age]() { InternalCleanUpExecuteQuery(table, time_column, max_age); }, PriorityLow, true);
1244}
1245
1246void IdoMysqlConnection::InternalCleanUpExecuteQuery(const String& table, const String& time_column, double max_age)
1247{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
EnqueueMethod · 0.45

Tested by

no test coverage detected