Parcourir la source

[1775] added some more notes about the property of the aux wildcard tree.

JINMEI Tatuya il y a 13 ans
Parent
commit
d3e876aacd
1 fichiers modifiés avec 14 ajouts et 2 suppressions
  1. 14 2
      src/lib/datasrc/memory_datasrc.cc

+ 14 - 2
src/lib/datasrc/memory_datasrc.cc

@@ -122,8 +122,20 @@ struct ZoneData {
     DomainTree domains_;
 
     // An auxiliary tree for wildcard expanded data used in additional data
-    // processing.  It should be rare that we need to build such a tree,
-    // so we create it only when we need it.
+    // processing.  It contains names like "ns.wild.example" in the following
+    // example:
+    // child.wild.example. NS ns.wild.example.
+    // *.wild.example IN AAAA 2001:db8::1234
+    // (and there's no exact ns.wild.example. in the zone).  This tree contains
+    // such names with a copy of the RRsets of the matching wildcard name
+    // with its owner name expanded, e.g.:
+    // ns.wild.example. IN AAAA 2001:db8::1234
+    // In theory, this tree could have many such wildcard-expandable names,
+    // each of which has a copy of the original list of RRsets.  In practice,
+    // however, it should be very rare that names for additional section
+    // processing are subject to wildcard expansion, so in most cases this tree
+    // should be even empty, and even if it has content it should be very
+    // small.
 private:
     scoped_ptr<DomainTree> aux_wild_domains_;
 public: