static void
prune_tree(void *arg);
static void
-free_gluetable(dns_qpdb_version_t *version);
+free_gluetable(struct cds_wfs_stack *glue_stack);
static void
rdatasetiter_destroy(dns_rdatasetiter_t **iteratorp DNS__DB_FLARG);
unsigned int i;
unsigned int inactive = 0;
- if (rbtdb->origin_node != NULL) {
- dns_qpdata_detach(&rbtdb->origin_node);
+ if (qpdb->origin_node != NULL) {
+ dns_qpdata_detach(&qpdb->origin_node);
}
- if (rbtdb->nsec3_origin_node != NULL) {
- dns_qpdata_detach(&rbtdb->nsec3_origin_node);
+ if (qpdb->nsec3_origin_node != NULL) {
+ dns_qpdata_detach(&qpdb->nsec3_origin_node);
}
/* XXX check for open versions here */
* node count below.
*/
if (qpdb->current_version != NULL) {
- free_gluetable(qpdb->current_version);
+ free_gluetable(&qpdb->current_version->glue_stack);
}
/*
if (cleanup_version != NULL) {
isc_refcount_destroy(&cleanup_version->references);
INSIST(EMPTY(cleanup_version->changed_list));
- free_gluetable(cleanup_version);
+ free_gluetable(&cleanup_version->glue_stack);
cds_wfs_destroy(&cleanup_version->glue_stack);
isc_rwlock_destroy(&cleanup_version->rwlock);
isc_mem_put(qpdb->common.mctx, cleanup_version,
}
static void
-free_gluetable(dns_qpdb_version_t *rbtversion) {
- struct cds_wfs_head *head = __cds_wfs_pop_all(&rbtversion->glue_stack);
+free_gluetable(struct cds_wfs_stack *glue_stack) {
+ struct cds_wfs_head *head = __cds_wfs_pop_all(glue_stack);
struct cds_wfs_node *node = NULL, *next = NULL;
rcu_read_lock();