mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-17 20:20:17 +02:00
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) {
|
if (endpoint) {
|
||||||
endpoint->AddClient(aclient);
|
endpoint->AddClient(aclient);
|
||||||
|
|
||||||
/* sync zone file config */
|
|
||||||
SendConfigUpdate(aclient);
|
|
||||||
/* sync runtime config */
|
|
||||||
SendRuntimeConfigObjects(aclient);
|
|
||||||
|
|
||||||
if (need_sync) {
|
if (need_sync) {
|
||||||
{
|
{
|
||||||
ObjectLock olock(endpoint);
|
ObjectLock olock(endpoint);
|
||||||
@ -387,6 +382,17 @@ void ApiListener::NewClientHandlerInternal(const Socket::Ptr& client, const Stri
|
|||||||
endpoint->SetSyncing(true);
|
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);
|
ReplayLog(aclient);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user