From: Miod Vallat Date: Wed, 9 Jul 2025 19:51:55 +0000 (+0200) Subject: Ѕcarce documentation of the list/lookup/get shared state. X-Git-Tag: rec-5.4.0-alpha0~34^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194be14423ae6a887bb1d0005302a479bc7abba7;p=thirdparty%2Fpdns.git Ѕcarce documentation of the list/lookup/get shared state. Signed-off-by: Miod Vallat --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index c12c073f8b..7e779534b4 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -1717,6 +1717,20 @@ bool LMDBBackend::deleteDomain(const ZoneName& domain) return true; } +/* + * Domain lookup shared state, set by list/lookup, used by get: + * + * d_lookupdomain: current domain being processed (appended to the + * results' names) + * d_currentrrset: temporary vector of results (records found at the same + * cursor, i.e. same qname but possibly different qtype) + * d_currentrrsetpos: position in the above when returning its elements one + * by one + * d_currentKey: database key at cursor + * d_currentVal: database contents at cursor + * d_includedisabled: whether to include disabled records in the results + */ + bool LMDBBackend::list(const ZoneName& target, domainid_t domain_id, bool include_disabled) { d_lookupdomain = target;