mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 10:48:20 +02:00
parent
8a335ce4e6
commit
95d41fba46
@ -1159,8 +1159,18 @@ void ApiListener::PersistMessage(const Dictionary::Ptr& message, const ConfigObj
|
||||
|
||||
targetEndpoints.erase(GetLocalEndpoint());
|
||||
|
||||
auto now (Utility::GetTime());
|
||||
|
||||
for (auto& endpoint : targetEndpoints) {
|
||||
if (ts > endpoint->GetLocalLogPosition()) {
|
||||
{
|
||||
auto logDuration (endpoint->GetLogDuration());
|
||||
|
||||
if (logDuration >= 0u) {
|
||||
endpoint->GetReplayLog().Cleanup(now - logDuration);
|
||||
}
|
||||
}
|
||||
|
||||
endpoint->GetReplayLog().Log(ts, JsonEncode(message));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user