mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
Fix: ApiListener::SyncRelayMessage doesn't send message to all zone members
fixes #10365
This commit is contained in:
parent
a64279de31
commit
9c993bb288
@ -539,13 +539,17 @@ void ApiListener::SyncRelayMessage(const MessageOrigin& origin, const DynamicObj
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* don't relay messages to disconnected endpoints */
|
/* don't relay messages to disconnected endpoints */
|
||||||
if (!endpoint->IsConnected())
|
if (!endpoint->IsConnected()) {
|
||||||
|
if (target_zone == my_zone)
|
||||||
|
finishedLogZones.erase(target_zone);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
finishedLogZones.insert(target_zone);
|
finishedLogZones.insert(target_zone);
|
||||||
|
|
||||||
/* don't relay the message to the zone through more than one endpoint */
|
/* don't relay the message to the zone through more than one endpoint unless this is our own zone */
|
||||||
if (finishedZones.find(target_zone) != finishedZones.end()) {
|
if (finishedZones.find(target_zone) != finishedZones.end() && target_zone != my_zone) {
|
||||||
skippedEndpoints.push_back(endpoint);
|
skippedEndpoints.push_back(endpoint);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user