mirror of https://github.com/Icinga/icinga2.git
cluster: Send SetLogPosition messages for all message types.
This commit is contained in:
parent
1b31ced475
commit
9c00e560ab
|
@ -676,11 +676,6 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||
{
|
||||
RelayMessage(sender, message, true);
|
||||
|
||||
if (message->Get("method") == "cluster::HeartBeat") {
|
||||
sender->SetSeen(Utility::GetTime());
|
||||
return;
|
||||
}
|
||||
|
||||
if (sender->GetRemoteLogPosition() + 10 < message->Get("ts")) {
|
||||
Dictionary::Ptr lparams = boost::make_shared<Dictionary>();
|
||||
lparams->Set("log_position", message->Get("ts"));
|
||||
|
@ -695,6 +690,11 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||
sender->SetRemoteLogPosition(message->Get("ts"));
|
||||
}
|
||||
|
||||
if (message->Get("method") == "cluster::HeartBeat") {
|
||||
sender->SetSeen(Utility::GetTime());
|
||||
return;
|
||||
}
|
||||
|
||||
Dictionary::Ptr params = message->Get("params");
|
||||
|
||||
if (!params)
|
||||
|
|
Loading…
Reference in New Issue