mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Don't cleanup the dead nodes when pruning the tree
The dead nodes might get reactivated during the db iterator walks the version of the tree, so we can't cleanup the dead nodes while the db version is open. Restore the previous behaviour that cleaned up the dead nodes when we are closing the version.
This commit is contained in:
@@ -2254,12 +2254,6 @@ prune_tree(isc_task_t *task, isc_event_t *event) {
|
||||
decrement_reference(rbtdb, node, 0, &nlocktype, &tlocktype,
|
||||
true);
|
||||
|
||||
/*
|
||||
* We have both write locks, we might as well do a light
|
||||
* dead nodes cleaning.
|
||||
*/
|
||||
cleanup_dead_nodes(rbtdb, locknum);
|
||||
|
||||
if (parent != NULL && parent->down == NULL) {
|
||||
/*
|
||||
* node was the only down child of the parent and has
|
||||
|
Reference in New Issue
Block a user