mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user