mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 09:44:31 +02:00
cluster: Fix handling messages that don't have a timestamp.
This commit is contained in:
parent
2daa2cae85
commit
a00a28d31b
@ -769,7 +769,7 @@ void ClusterComponent::AcknowledgementClearedHandler(const Service::Ptr& service
|
|||||||
|
|
||||||
void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Dictionary::Ptr& message)
|
void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Dictionary::Ptr& message)
|
||||||
{
|
{
|
||||||
if (sender->GetRemoteLogPosition() + 10 < message->Get("ts")) {
|
if (message->Contains("ts") && sender->GetRemoteLogPosition() + 10 < message->Get("ts")) {
|
||||||
Dictionary::Ptr lparams = boost::make_shared<Dictionary>();
|
Dictionary::Ptr lparams = boost::make_shared<Dictionary>();
|
||||||
lparams->Set("log_position", message->Get("ts"));
|
lparams->Set("log_position", message->Get("ts"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user