mirror of https://github.com/Icinga/icinga2.git
cluster: Fix cleaning up old log files.
This commit is contained in:
parent
b887b558bc
commit
2b9568fbd5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue