]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace rbt_addnode with qp_insert
authorMatthijs Mekking <matthijs@isc.org>
Wed, 10 Jan 2024 15:29:57 +0000 (16:29 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 6 Mar 2024 08:57:24 +0000 (09:57 +0100)
commitc53b95e1343ca02fbe8c3ef4a0b3f02c62ee45dc
treebe391604df1cdb166634dfdc45ae39e2f3a8c835
parentbb4464181a43dad3cfe447494900b03926bdae45
Replace rbt_addnode with qp_insert

Replace dns_rbt_addnode calls with dns_qp_insert. With QP, it sometimes
makes more sense to first lookup the name and see if there is an
existing node (rather than create new data, insert, find out a node
already exists, and destroy the data again). This is done with
dns_qp_getname(), which is more lightweight than dns_qp_lookup(),
and we are only interested in if there is already a leaf node for this
name or not.
lib/dns/qp-zonedb.c
lib/dns/qpdb.c