The qpznode->name is constant - assigned when the node is created
and it is immutable, so there's no reason to have it locked at all.
static isc_result_t
nodefullname(dns_dbnode_t *node, dns_name_t *name) {
- qpznode_t *qpnode = (qpznode_t *)node;
- isc_rwlocktype_t nlocktype = isc_rwlocktype_none;
- isc_rwlock_t *nlock = NULL;
-
REQUIRE(node != NULL);
REQUIRE(name != NULL);
- nlock = qpzone_get_lock(qpnode);
+ qpznode_t *qpnode = (qpznode_t *)node;
- NODE_RDLOCK(nlock, &nlocktype);
dns_name_copy(&qpnode->name, name);
- NODE_UNLOCK(nlock, &nlocktype);
return ISC_R_SUCCESS;
}