]> git.ipfire.org Git - thirdparty/bind9.git/commit
Simplify the parent cleaning in the prune_tree() mechanism
authorOndřej Surý <ondrej@isc.org>
Wed, 21 Feb 2024 12:32:09 +0000 (13:32 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 29 Feb 2024 11:06:56 +0000 (12:06 +0100)
commita4c225cb6dd6bfa409302528b817ea2a6699598d
treecb1e2081d4d814199d0921f870cb3f7de6adc3c8
parent4b32456705a9812ee21b815da361fe1adf1f1b94
Simplify the parent cleaning in the prune_tree() mechanism

Instead of juggling with node locks in a cycle, cleanup the node we are
just pruning and send any the parent that's also subject to the pruning
to the prune tree via normal way (e.g. enqueue pruning on the parent).

This simplifies the code and also spreads the pruning load across more
event loop ticks which is better for lock contention as less things run
in a tight loop.

(cherry picked from commit 0b32d323e07d2468111aa725b36e72b0538e0521)
lib/dns/rbtdb.c