From: Otto Moerbeek Date: Mon, 3 Apr 2023 08:24:36 +0000 (+0200) Subject: Merge pull request #12497 from jsoref/shorthands-for-seconds X-Git-Tag: rec-4.9.0-alpha1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7932d13aa806ee4580d9a126271f00e0f60d7191;p=thirdparty%2Fpdns.git Merge pull request #12497 from jsoref/shorthands-for-seconds Shorthands for seconds --- 7932d13aa806ee4580d9a126271f00e0f60d7191 diff --cc modules/lmdbbackend/lmdbbackend.cc index 3e1b35a87c,2518f2bdf0..c9a47a613a --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@@ -1422,10 -810,10 +1422,10 @@@ void LMDBBackend::lookup(const QType& t d_matchkey = co(zoneId, relqname, type.getCode()); } - if (d_getcursor->lower_bound(d_matchkey, key, val) || key.get().rfind(d_matchkey, 0) != 0) { + if (d_getcursor->lower_bound(d_matchkey, key, val) || key.getNoStripHeader().rfind(d_matchkey, 0) != 0) { d_getcursor.reset(); if (d_dolog) { - g_log << Logger::Warning << "Query " << ((long)(void*)this) << ": " << d_dtime.udiffNoReset() << " usec to execute (found nothing)" << endl; + g_log << Logger::Warning << "Query " << ((long)(void*)this) << ": " << d_dtime.udiffNoReset() << " us to execute (found nothing)" << endl; } return; }