use dns_qpmulti instead of dns_qp in the cache

replace the single-threaded dns_qp objects in the qpcache
database with dns_qpmulti and eliminate the tree lock.
This commit is contained in:
Evan Hunt
2024-03-13 00:59:29 -07:00
parent 87d29f48d4
commit be0837df1f
2 changed files with 206 additions and 348 deletions
+1 -1
View File
@@ -1059,7 +1059,7 @@ dns_qpmulti_memusage(dns_qpmulti_t *multi) {
dns_qp_memusage_t memusage = dns_qp_memusage(qp);
if (qp->transaction_mode == QP_UPDATE) {
if (qp->transaction_mode == QP_UPDATE && qp->usage != NULL) {
memusage.bytes -= QP_CHUNK_BYTES;
memusage.bytes += qp->usage[qp->bump].used *
sizeof(dns_qpnode_t);
+205 -347
View File
File diff suppressed because it is too large Load Diff