BIND 10 trac2420, updated. 4263ba5f49dad8f1d282de20b9dc7644953472b7 [2420] use "RRSIG(<covered>)" in logging for RRSIG-only RRsets

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Nov 26 06:59:06 UTC 2012


The branch, trac2420 has been updated
       via  4263ba5f49dad8f1d282de20b9dc7644953472b7 (commit)
       via  f31f6dd3b5abf5e25c3416ac963d8de8db43175f (commit)
      from  9397bd5dbf2b82a62f2006775ea92bb3b05b755d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4263ba5f49dad8f1d282de20b9dc7644953472b7
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Nov 26 14:29:20 2012 +0900

    [2420] use "RRSIG(<covered>)" in logging for RRSIG-only RRsets

commit f31f6dd3b5abf5e25c3416ac963d8de8db43175f
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Nov 26 14:16:37 2012 +0900

    [2420] made a comment line less confusing (separate unrelated one and add new)

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/memory/zone_data_updater.cc |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/zone_data_updater.cc b/src/lib/datasrc/memory/zone_data_updater.cc
index 041b79b..3fdad5a 100644
--- a/src/lib/datasrc/memory/zone_data_updater.cc
+++ b/src/lib/datasrc/memory/zone_data_updater.cc
@@ -22,6 +22,7 @@
 #include <dns/rdataclass.h>
 
 #include <cassert>
+#include <string>
 
 using namespace isc::dns;
 using namespace isc::dns::rdata;
@@ -309,6 +310,8 @@ ZoneDataUpdater::addRdataSet(const Name& name, const RRType& rrtype,
         node->setData(rdataset_new);
 
         // Ok, we just put it in.
+
+        // Convenient (and more efficient) shortcut to check RRsets at origin
         const bool is_origin = (node == zone_data_.getOriginNode());
 
         // If this RRset creates a zone cut at this node, mark the node
@@ -357,8 +360,9 @@ ZoneDataUpdater::add(const ConstRRsetPtr& rrset,
         getCoveredType(sig_rrset);
 
     // OK, can add the RRset.
-    LOG_DEBUG(logger, DBG_TRACE_DATA, DATASRC_MEMORY_MEM_ADD_RRSET).
-        arg(name).arg(rrtype).arg(zone_name_);
+    LOG_DEBUG(logger, DBG_TRACE_DATA, DATASRC_MEMORY_MEM_ADD_RRSET).arg(name).
+        arg(rrset ? rrtype.toText() : "RRSIG(" + rrtype.toText() + ")").
+        arg(zone_name_);
 
     // Add wildcards possibly contained in the owner name to the domain
     // tree.  This can only happen for the normal (non-NSEC3) tree.



More information about the bind10-changes mailing list