mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
cluster: Bugfix for the log timestamps.
This commit is contained in:
parent
b844ea1bcb
commit
235042bbac
@ -656,6 +656,8 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||||||
lmessage->Set("params", lparams);
|
lmessage->Set("params", lparams);
|
||||||
|
|
||||||
sender->SendMessage(lmessage);
|
sender->SendMessage(lmessage);
|
||||||
|
|
||||||
|
sender->SetRemoteLogPosition(message->Get("ts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary::Ptr params = message->Get("params");
|
Dictionary::Ptr params = message->Get("params");
|
||||||
@ -839,7 +841,7 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||||||
ObjectLock olock(service);
|
ObjectLock olock(service);
|
||||||
service->ClearAcknowledgement(sender->GetName());
|
service->ClearAcknowledgement(sender->GetName());
|
||||||
} else if (message->Get("method") == "cluster::SetLogPosition") {
|
} else if (message->Get("method") == "cluster::SetLogPosition") {
|
||||||
sender->SetRemoteLogPosition(params->Get("log_position"));
|
sender->SetLocalLogPosition(params->Get("log_position"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user