Browse Source

[1483] Enable any mode on getRRsets

Michal 'vorner' Vaner 13 years ago
parent
commit
0d0b9b0ebe
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/datasrc/database.cc

+ 3 - 2
src/lib/datasrc/database.cc

@@ -597,7 +597,7 @@ DatabaseClient::Finder::findWildcardMatch(
         // RFC 4592 section 4.4).
         // RFC 4592 section 4.4).
         // Search for a match.  The types are the same as with original query.
         // Search for a match.  The types are the same as with original query.
         FoundRRsets found = getRRsets(wildcard, final_types, true,
         FoundRRsets found = getRRsets(wildcard, final_types, true,
-                                      &construct_name);
+                                      &construct_name, type == RRType::ANY());
         if (found.first) {
         if (found.first) {
             // Found something - but what?
             // Found something - but what?
 
 
@@ -863,7 +863,8 @@ DatabaseClient::Finder::findInternal(const isc::dns::Name& name,
     WantedTypes final_types(FINAL_TYPES());
     WantedTypes final_types(FINAL_TYPES());
     final_types.insert(type);
     final_types.insert(type);
     const FoundRRsets found = getRRsets(name.toText(), final_types,
     const FoundRRsets found = getRRsets(name.toText(), final_types,
-                                        !is_origin);
+                                        !is_origin, NULL,
+                                        type == RRType::ANY());
 
 
     if (found.first) {
     if (found.first) {
         // Something found at the domain name.  Look into it further to get
         // Something found at the domain name.  Look into it further to get