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

Method ClearTableBySession

lib/db_ido_mysql/idomysqlconnection.cpp:514–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514void IdoMysqlConnection::ClearTableBySession(const String& table)
515{
516 Query("DELETE FROM " + GetTablePrefix() + table + " WHERE instance_id = " +
517 Convert::ToString(static_cast<long>(m_InstanceID)) + " AND session_token <> " +
518 Convert::ToString(GetSessionToken()));
519}
520
521void IdoMysqlConnection::AsyncQuery(const String& query, const std::function<void (const IdoMysqlResult&)>& callback)
522{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected