Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
(cherry picked from commit bce1a01)
  • Loading branch information
Habbie committed Feb 28, 2025
1 parent 93afb9f commit 3e6f586
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/lmdbbackend/lmdbbackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1405,10 +1405,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();
}

Expand Down

0 comments on commit 3e6f586

Please sign in to comment.