From 2f8b49f4ef44b3d826caccac57fec8c906f604ff Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sun, 9 Mar 2014 18:20:45 +0100 Subject: [PATCH] Add comment on clearing tables on reconnect. Refs #5565 --- lib/db_ido/dbconnection.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index 7ee96e18d..92c0c6ac0 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -311,7 +311,12 @@ void DbConnection::UpdateAllObjects(void) void DbConnection::PrepareDatabase(void) { - /* TODO make hardcoded table names modular */ + /* + * only clear tables on reconnect which + * cannot be updated by their existing ids + * for details check https://dev.icinga.org/issues/5565 + */ + //ClearConfigTable("commands"); ClearConfigTable("comments"); ClearConfigTable("contact_addresses");