Commit 1133c5a5 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac502] Propose minor changes

parent 1243b751
......@@ -225,18 +225,15 @@ struct MemoryZone::MemoryZoneImpl {
}
// handle type any query
if (target){
if (!node->getData()->empty()) {
for (found = node->getData()->begin();
found != node->getData()->end(); found++)
{
target->addRRset(
boost::const_pointer_cast<RRset>(found->second));
}
return (FindResult(SUCCESS, ConstRRsetPtr()));
} else {
return (FindResult(NXRRSET, ConstRRsetPtr()));
if (target && !node->getData()->empty()) {
// Empty domain will be handled as NXRRSET by normal processing
for (found = node->getData()->begin();
found != node->getData()->end(); found++)
{
target->addRRset(
boost::const_pointer_cast<RRset>(found->second));
}
return (FindResult(SUCCESS, ConstRRsetPtr()));
}
found = node->getData()->find(type);
......
......@@ -160,8 +160,9 @@ public:
/// \c CNAME and that CNAME RR.
/// - If the search name matches a delegation point of DNAME, it returns
/// the code of \c DNAME and that DNAME RR.
/// - If the query type is ANY, target shouldn't be NULL. It iterate over
/// RRs under the domain, and insert them into target.
/// - If the target isn't NULL, all RRsets under the domain are inserted
/// there and SUCCESS (or NXDOMAIN, in case of empty domain) is returned
/// instead of normall processing. This is intended to handle ANY query.
///
/// The \c options parameter specifies customized behavior of the search.
/// Their semantics is as follows:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment