mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
cluster: Don't try to reconnect while we're replaying the log.
This commit is contained in:
parent
d4bb2102fb
commit
fe13be0e9c
@ -435,10 +435,9 @@ void ClusterComponent::NewClientHandler(const Socket::Ptr& client, TlsRole role)
|
|||||||
|
|
||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
endpoint->SetClient(tlsStream);
|
||||||
ReplayLog(endpoint, tlsStream);
|
ReplayLog(endpoint, tlsStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
endpoint->SetClient(tlsStream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClusterComponent::ClusterTimerHandler(void)
|
void ClusterComponent::ClusterTimerHandler(void)
|
||||||
@ -1089,8 +1088,6 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||||||
Log(LogInformation, "cluster", "Restarting after configuration change.");
|
Log(LogInformation, "cluster", "Restarting after configuration change.");
|
||||||
Application::RequestRestart();
|
Application::RequestRestart();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: update files, remove old files, figure out whether we need to restart */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user