]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3313] Make minor optimization of wildcard concatenation in database datasource
authorMukund Sivaraman <muks@isc.org>
Thu, 30 Jan 2014 05:14:01 +0000 (10:44 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 30 Jan 2014 05:14:01 +0000 (10:44 +0530)
src/lib/datasrc/database.cc

index 9551cadaa036ae82e5d7e3a95ee280b73bb23635..b6a3f3c4160267fc09c584303b3c973ca6a4892d 100644 (file)
@@ -646,7 +646,7 @@ DatabaseClient::Finder::findWildcardMatch(
 
         // Strip off the left-more label(s) in the name and replace with a "*".
         const Name superdomain(name.split(i));
-        const string wildcard(Name("*").concatenate(superdomain).toText());
+        const string wildcard(Name("*", 1, &superdomain).toText());
         const string construct_name(name.toText());
 
         // TODO Add a check for DNAME, as DNAME wildcards are discouraged (see