]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Š…carce documentation of the list/lookup/get shared state.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 9 Jul 2025 19:51:55 +0000 (21:51 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 11 Jul 2025 07:29:28 +0000 (09:29 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index c12c073f8b325fe84f698c9047dc6dd23b65864e..7e779534b4774a4ab60aa838746fa2c12c50e3c7 100644 (file)
@@ -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;