]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove redundant check
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Feb 2025 11:01:33 +0000 (12:01 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Feb 2025 11:01:33 +0000 (12:01 +0100)
modules/lmdbbackend/lmdbbackend.cc

index c21d0d5b557e9ae9ddf21a34bcf7cb68dd91e86c..b7e1877579c17de1688236c8be62d2f51fa5ddcd 100644 (file)
@@ -1468,10 +1468,7 @@ bool LMDBBackend::list(const DNSName& target, int /* id */, bool include_disable
   d_matchkey = co(di.id);
 
   MDBOutVal key, val;
-  auto a = d_getcursor->prefix(d_matchkey, key, val);
-  auto b0 = key.getNoStripHeader<StringView>();
-  auto b = b0.rfind(d_matchkey, 0);
-  if (a || b != 0) {
+  if (d_getcursor->prefix(d_matchkey, key, val)) {
     d_getcursor.reset();
   }