]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2108] Remove what's left of RBNodeRRset
authorMukund Sivaraman <muks@isc.org>
Tue, 4 Sep 2012 03:00:31 +0000 (08:30 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 4 Sep 2012 03:00:31 +0000 (08:30 +0530)
src/lib/datasrc/memory/memory_client.cc

index ab62f191a10872da9d4fbf8f2afa25034d61c712..0ceefd8d9c387d2e12356bae3a004f8eb61d704c 100644 (file)
@@ -429,21 +429,16 @@ public:
      */
 
     // Implementation of InMemoryClient::add()
-    result::Result add(const ConstRRsetPtr& rawrrset,
+    result::Result add(const ConstRRsetPtr& rrset,
                        const Name& zone_name, ZoneData& zone_data)
     {
         // Sanitize input.  This will cause an exception to be thrown
         // if the input RRset is empty.
-        addValidation(zone_name, rawrrset);
+        addValidation(zone_name, rrset);
 
         // OK, can add the RRset.
         LOG_DEBUG(logger, DBG_TRACE_DATA, DATASRC_MEM_ADD_RRSET).
-            arg(rawrrset->getName()).arg(rawrrset->getType()).arg(zone_name);
-
-        // ... although instead of loading the RRset directly, we encapsulate
-        // it within an RBNodeRRset.  This contains additional information that
-        // speeds up queries.
-        RBNodeRRsetPtr rrset(new RBNodeRRset(rawrrset));
+            arg(rrset->getName()).arg(rrset->getType()).arg(zone_name);
 
         if (rrset->getType() == RRType::NSEC3()) {
             return (addNSEC3(rrset, zone_data));