From: Aki Tuomi Date: Sat, 8 Feb 2014 20:55:48 +0000 (+0200) Subject: Stub for getAllDomainMetadata X-Git-Tag: rec-3.6.0-rc1~179^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac993e0a1970c07f0864c564828843061397a2b3;p=thirdparty%2Fpdns.git Stub for getAllDomainMetadata --- diff --git a/pdns/dnsbackend.hh b/pdns/dnsbackend.hh index c305cfba60..f5bfacd6e9 100644 --- a/pdns/dnsbackend.hh +++ b/pdns/dnsbackend.hh @@ -133,6 +133,7 @@ public: } // the DNSSEC related (getDomainMetadata has broader uses too) + virtual bool getAllDomainMetadata(const string& name, std::map >& meta) { return false; }; virtual bool getDomainMetadata(const string& name, const std::string& kind, std::vector& meta) { return false; } virtual bool setDomainMetadata(const string& name, const std::string& kind, const std::vector& meta) {return false;} diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 603159444e..08bac7d5db 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -137,6 +137,16 @@ bool UeberBackend::getDomainKeys(const string& name, unsigned int kind, std::vec return false; } +bool UeberBackend::getAllDomainMetadata(const string& name, std::map >& meta) +{ + check_op_requests(); + BOOST_FOREACH(DNSBackend* db, backends) { + if(db->getAllDomainMetadata(name, meta)) + return true; + } + return false; +} + bool UeberBackend::getDomainMetadata(const string& name, const std::string& kind, std::vector& meta) { check_op_requests(); diff --git a/pdns/ueberbackend.hh b/pdns/ueberbackend.hh index 3b7b74183b..53eef920ca 100644 --- a/pdns/ueberbackend.hh +++ b/pdns/ueberbackend.hh @@ -136,6 +136,7 @@ public: int addDomainKey(const string& name, const KeyData& key); bool getDomainKeys(const string& name, unsigned int kind, std::vector& keys); + bool getAllDomainMetadata(const string& name, std::map >& meta); bool getDomainMetadata(const string& name, const std::string& kind, std::vector& meta); bool setDomainMetadata(const string& name, const std::string& kind, const std::vector& meta);