]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2435] Add a note that some records may not be found by the datasrc RRsetCollection
authorMukund Sivaraman <muks@isc.org>
Tue, 15 Jan 2013 08:00:37 +0000 (13:30 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 15 Jan 2013 08:00:37 +0000 (13:30 +0530)
src/lib/datasrc/rrset_collection_base.h
src/lib/datasrc/tests/database_unittest.cc

index 7a414df7623e5db87579733a7c365251eb080d91..c02df9a0558751905bc9f7d734b4d11d87221342 100644 (file)
@@ -56,6 +56,10 @@ public:
     /// given \c name, \c rrclass and \c rrtype.  If no matching RRset
     /// is found, \c NULL is returned.
     ///
+    /// Note that not all records added through the updater may
+    /// necessarily be found by this method, such as RRs subject to
+    /// DNAME substitution.
+    ///
     /// \throw isc::dns::RRsetCollectionError if \c find() results in
     /// some underlying datasrc error, or if \c disable() was called.
     ///
index 0ca5a02dc91b1bc5f8fe0e26c61a746873f11807..94d90b5e3ba2e49a3a1f3f1dcb5bf8a69687bd9b 100644 (file)
@@ -4234,12 +4234,11 @@ TYPED_TEST(RRsetCollectionTest, find) {
                                   this->qclass_, RRType::AAAA());
     EXPECT_FALSE(rrset);
 
-    // TODO: "below.dname.example.org." with type A does not return the
-    // record (see top of file). It needs to be checked if this is what
-    // we want.
+    // "below.dname.example.org." with type A does not return the record
+    // (see top of file). See \c isc::datasrc::RRsetCollectionBase::find()
+    // documentation for details.
     rrset = this->collection.find(Name("below.dname.example.org"),
                                   this->qclass_, RRType::A());
-    // Is this correct behavior?
     EXPECT_FALSE(rrset);
 
     // With the FIND_GLUE_OK option passed to ZoneFinder's find(),