Browse Source

[trac551] editorial fix: made sure comments and code matched.

JINMEI Tatuya 14 years ago
parent
commit
73837f5133
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/lib/datasrc/memory_datasrc.cc

+ 6 - 6
src/lib/datasrc/memory_datasrc.cc

@@ -94,10 +94,8 @@ struct MemoryZone::MemoryZoneImpl {
              l > origin_labels;
              --l, wname = wname.split(1)) {
             if (wname.isWildcard()) {
-                // Ensure a separate level exists for the wildcard name.
-                // Note: for 'name' itself we do this later anyway, but the
-                // overhead should be marginal because wildcard names should
-                // be rare.
+                // Ensure a separate level exists for the "wildcarding" name,
+                // and mark the node as "wild".
                 DomainNode* node;
                 DomainTree::Result result(domains.insert(wname.split(1),
                                                          &node));
@@ -105,8 +103,10 @@ struct MemoryZone::MemoryZoneImpl {
                        result == DomainTree::ALREADYEXISTS);
                 node->setFlag(DOMAINFLAG_WILD);
 
-                // Ensure a separate level exists for the "wildcarding" name,
-                // and mark the node as "wild".
+                // Ensure a separate level exists for the wildcard name.
+                // Note: for 'name' itself we do this later anyway, but the
+                // overhead should be marginal because wildcard names should
+                // be rare.
                 result = domains.insert(wname, &node);
                 assert(result == DomainTree::SUCCESS ||
                        result == DomainTree::ALREADYEXISTS);