Browse Source

[master] cleanup: removed a redundant copy construction of LabelSequence.

okayed on jabber.
JINMEI Tatuya 12 years ago
parent
commit
ac07f31fa2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/lib/datasrc/memory/zone_finder.cc

+ 2 - 3
src/lib/datasrc/memory/zone_finder.cc

@@ -490,9 +490,8 @@ FindNodeResult findNode(const ZoneData& zone_data,
             // Clear the node_path so that we don't keep incorrect (NSEC)
             // context
             node_path.clear();
-            ZoneTree::Result result = tree.find(LabelSequence(wildcard_ls),
-                                                &node, node_path, cutCallback,
-                                                &state);
+            ZoneTree::Result result = tree.find(wildcard_ls, &node, node_path,
+                                                cutCallback, &state);
             // Otherwise, why would the domain_flag::WILD be there if
             // there was no wildcard under it?
             assert(result == ZoneTree::EXACTMATCH);