cluster: Fix cleaning up old log files.

This commit is contained in:
Gunnar Beutner 2013-09-12 18:08:06 +02:00
parent b887b558bc
commit 2b9568fbd5
1 changed files with 3 additions and 0 deletions

View 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) {