mirror of https://github.com/Icinga/icinga2.git
Ensure that runtime created objects are synced on (re)connect
refs #11684
This commit is contained in:
parent
2e2de7c340
commit
4b86f69c96
|
@ -417,10 +417,6 @@ void ApiListener::SendRuntimeConfigObjects(const JsonRpcConnection::Ptr& aclient
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (const ConfigObject::Ptr& object : dtype->GetObjects()) {
|
for (const ConfigObject::Ptr& object : dtype->GetObjects()) {
|
||||||
/* don't sync objects with an older version time than the endpoint's log position */
|
|
||||||
if (object->GetVersion() < endpoint->GetLocalLogPosition())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
/* don't sync objects for non-matching parent-child zones */
|
/* don't sync objects for non-matching parent-child zones */
|
||||||
if (!azone->CanAccessObject(object))
|
if (!azone->CanAccessObject(object))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue