diff --git a/pdns/dnsdistdist/dnsdist-dynblocks.cc b/pdns/dnsdistdist/dnsdist-dynblocks.cc index a8dbd28ffdf99..7912689986f92 100644 --- a/pdns/dnsdistdist/dnsdist-dynblocks.cc +++ b/pdns/dnsdistdist/dnsdist-dynblocks.cc @@ -480,7 +480,7 @@ void DynBlockRulesGroup::processResponseRules(counts_t& counts, StatNode& root, if (suffixMatchRuleMatches) { const bool hit = ringEntry.isACacheHit(); - root.submit(ringEntry.name, ((ringEntry.dh.rcode == 0 && ringEntry.usec == std::numeric_limits::max()) ? -1 : ringEntry.dh.rcode), ringEntry.size, hit, boost::none); + root.submit(ringEntry.name, ((ringEntry.dh.rcode == 0 && ringEntry.usec == std::numeric_limits::max()) ? -1 : ringEntry.dh.rcode), ringEntry.size, hit, std::nullopt); } } } diff --git a/pdns/dnsdistdist/dnsdist-lua-inspection.cc b/pdns/dnsdistdist/dnsdist-lua-inspection.cc index 2ad3999f7c2e5..f181b6628c6fb 100644 --- a/pdns/dnsdistdist/dnsdist-lua-inspection.cc +++ b/pdns/dnsdistdist/dnsdist-lua-inspection.cc @@ -143,7 +143,7 @@ static void statNodeRespRing(statvisitor_t visitor, uint64_t seconds) } const bool hit = entry.isACacheHit(); - root.submit(entry.name, ((entry.dh.rcode == 0 && entry.usec == std::numeric_limits::max()) ? -1 : entry.dh.rcode), entry.size, hit, boost::none); + root.submit(entry.name, ((entry.dh.rcode == 0 && entry.usec == std::numeric_limits::max()) ? -1 : entry.dh.rcode), entry.size, hit, std::nullopt); } } diff --git a/pdns/statnode.cc b/pdns/statnode.cc index 898c221094da6..253d064d34f6e 100644 --- a/pdns/statnode.cc +++ b/pdns/statnode.cc @@ -48,7 +48,7 @@ void StatNode::visit(const visitor_t& visitor, Stat& newstat, unsigned int depth newstat += childstat; } -void StatNode::submit(const DNSName& domain, int rcode, unsigned int bytes, bool hit, const boost::optional& remote) +void StatNode::submit(const DNSName& domain, int rcode, unsigned int bytes, bool hit, const std::optional& remote) { // cerr<<"FIRST submit called on '"< tmp = domain.getRawLabels(); @@ -67,7 +67,7 @@ void StatNode::submit(const DNSName& domain, int rcode, unsigned int bytes, bool www.powerdns.com. */ -void StatNode::submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, const boost::optional& remote, unsigned int count, bool hit) +void StatNode::submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, const std::optional& remote, unsigned int count, bool hit) { // cerr<<"Submit called for domain='"<& remote); + void submit(const DNSName& domain, int rcode, unsigned int bytes, bool hit, const std::optional& remote); Stat print(unsigned int depth=0, Stat newstat=Stat(), bool silent=false) const; void visit(const visitor_t& visitor, Stat& newstat, unsigned int depth = 0) const; bool empty() const @@ -75,5 +75,5 @@ public: children_t children; private: - void submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, const boost::optional& remote, unsigned int count, bool hit); + void submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, const std::optional& remote, unsigned int count, bool hit); };