From: Gunnar Beutner Date: Thu, 12 Sep 2013 16:08:06 +0000 (+0200) Subject: cluster: Fix cleaning up old log files. X-Git-Tag: v0.0.3~531 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b9568fbd5e4c56dfeb7853085b5fd7612246905;p=icinga2 cluster: Fix cleaning up old log files. --- diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 671578e3f..b16c6e741 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -535,6 +535,9 @@ void ClusterComponent::ClusterTimerHandler(void) bool need = false; BOOST_FOREACH(const Endpoint::Ptr& endpoint, DynamicType::GetObjects()) { + if (endpoint->GetName() == GetIdentity()) + continue; + double position = endpoint->GetLocalLogPosition(); if (position != 0 && ts > position) {