]> granicus.if.org Git - icinga2/commitdiff
cluster: Fix cleaning up old log files.
authorGunnar Beutner <gunnar@beutner.name>
Thu, 12 Sep 2013 16:08:06 +0000 (18:08 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 12 Sep 2013 16:08:06 +0000 (18:08 +0200)
components/cluster/clustercomponent.cpp

index 671578e3f2a24a8dbd70321eb55083ebac4fd58f..b16c6e74158f68ddaef8907f69d3f13ab0e520d8 100644 (file)
@@ -535,6 +535,9 @@ void ClusterComponent::ClusterTimerHandler(void)
                bool need = false;
 
                BOOST_FOREACH(const Endpoint::Ptr& endpoint, DynamicType::GetObjects<Endpoint>()) {
+                       if (endpoint->GetName() == GetIdentity())
+                               continue;
+
                        double position = endpoint->GetLocalLogPosition();
 
                        if (position != 0 && ts > position) {