2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Revert "fix: dev: Delete dead nodes when committing a new version"

This reverts commit 67255da4b3, reversing
changes made to 74c9ff384e.
This commit is contained in:
Ondřej Surý
2025-03-05 17:36:53 +01:00
parent db5166ab99
commit 1e4695510a
2 changed files with 11 additions and 94 deletions

View File

@@ -202,9 +202,10 @@ struct qpcnode {
uint8_t : 0;
/*%
* Used for dead node cleaning. The deadnodes queue is used
* for nodes that have no data any longer, but we can't unlink
* yet because we don't have a tree lock.
* Used for dead nodes cleaning. This linked list is used to mark nodes
* which have no data any longer, but we cannot unlink at that exact
* moment because we did not or could not obtain a write lock on the
* tree.
*/
isc_queue_node_t deadlink;
};
@@ -215,8 +216,9 @@ struct qpcnode {
* to reduce contention between threads.
*/
typedef struct qpcache_bucket {
/*
* Temporary storage for cache nodes that need to be deleted.
/*%
* Temporary storage for stale cache nodes and dynamically
* deleted nodes that await being cleaned up.
*/
isc_queue_t deadnodes;