[icinga-checkins] icinga.org: icinga2/support/2.5: Ensure that runtime created objects are synced on (re)connect

git at icinga.org git at icinga.org
Thu Nov 17 13:51:08 CET 2016


Module: icinga2
Branch: support/2.5
Commit: 46d71451d08d05ba572d7b3729730d50447a2da2
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=46d71451d08d05ba572d7b3729730d50447a2da2

Author: Michael Friedrich <michael.friedrich at icinga.com>
Date:   Thu Nov 10 20:00:00 2016 +0100

Ensure that runtime created objects are synced on (re)connect

refs #11684

---

 lib/remote/apilistener-configsync.cpp |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp
index 1ef2e6c..4e3436f 100644
--- a/lib/remote/apilistener-configsync.cpp
+++ b/lib/remote/apilistener-configsync.cpp
@@ -412,10 +412,6 @@ void ApiListener::SendRuntimeConfigObjects(const JsonRpcConnection::Ptr& aclient
 			continue;
 
 		BOOST_FOREACH(const ConfigObject::Ptr& object, dtype->GetObjects()) {
-			/* don't sync objects with an older version time than the endpoint's log position */
-			if (object->GetVersion() < endpoint->GetLocalLogPosition())
-				continue;
-
 			/* don't sync objects for non-matching parent-child zones */
 			if (!azone->CanAccessObject(object))
 				continue;



More information about the icinga-checkins mailing list