]> granicus.if.org Git - icinga2/commitdiff
Rename Zone#GetAllParents() to Zone#GetAllParentsRaw()
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Wed, 8 Aug 2018 11:59:43 +0000 (13:59 +0200)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Wed, 8 Aug 2018 12:38:02 +0000 (14:38 +0200)
lib/remote/apilistener.cpp
lib/remote/zone.cpp
lib/remote/zone.hpp

index c1546710d0a84b80450a804846c06df391ec8bea..c1eeb3e23228c2ce75e90f753428c3338ccc3485 100644 (file)
@@ -997,7 +997,7 @@ void ApiListener::SyncRelayMessage(const MessageOrigin::Ptr& origin,
 
        bool need_log = !RelayMessageOne(target_zone, origin, message, master);
 
-       for (const Zone::Ptr& zone : target_zone->GetAllParents()) {
+       for (const Zone::Ptr& zone : target_zone->GetAllParentsRaw()) {
                if (!RelayMessageOne(zone, origin, message, master))
                        need_log = true;
        }
index eddc3aa6742d089d6dd4538c6191759e1d732966..da4a5dad3480db31150510dd5b6fd288729b1dd9 100644 (file)
@@ -89,7 +89,7 @@ std::set<Endpoint::Ptr> Zone::GetEndpoints() const
        return result;
 }
 
-std::vector<Zone::Ptr> Zone::GetAllParents() const
+std::vector<Zone::Ptr> Zone::GetAllParentsRaw() const
 {
        return m_AllParents;
 }
index 6193dc0268e2e4739a7b45931d36ee918a7e0e86..23b04e6ddcedde88f50252945e9a61a66b85365f 100644 (file)
@@ -40,7 +40,7 @@ public:
 
        Zone::Ptr GetParent() const;
        std::set<Endpoint::Ptr> GetEndpoints() const;
-       std::vector<Zone::Ptr> GetAllParents() const;
+       std::vector<Zone::Ptr> GetAllParentsRaw() const;
 
        bool CanAccessObject(const ConfigObject::Ptr& object);
        bool IsChildOf(const Zone::Ptr& zone);