mirror of https://github.com/Icinga/icinga2.git
Config sync does not set endpoint syncing and plays disconnect-sync ping-pong
fixes #10255
This commit is contained in:
parent
657e749c9b
commit
0529d51a85
|
@ -375,11 +375,6 @@ void ApiListener::NewClientHandlerInternal(const Socket::Ptr& client, const Stri
|
|||
if (endpoint) {
|
||||
endpoint->AddClient(aclient);
|
||||
|
||||
/* sync zone file config */
|
||||
SendConfigUpdate(aclient);
|
||||
/* sync runtime config */
|
||||
SendRuntimeConfigObjects(aclient);
|
||||
|
||||
if (need_sync) {
|
||||
{
|
||||
ObjectLock olock(endpoint);
|
||||
|
@ -387,6 +382,17 @@ void ApiListener::NewClientHandlerInternal(const Socket::Ptr& client, const Stri
|
|||
endpoint->SetSyncing(true);
|
||||
}
|
||||
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Sending updates for endpoint '" << endpoint->GetName() << "'.";
|
||||
|
||||
/* sync zone file config */
|
||||
SendConfigUpdate(aclient);
|
||||
/* sync runtime config */
|
||||
SendRuntimeConfigObjects(aclient);
|
||||
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Finished sending updates for endpoint '" << endpoint->GetName() << "'.";
|
||||
|
||||
ReplayLog(aclient);
|
||||
}
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue