2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

Use isc_nm_getnworkers to manage zone resources

Instead of passing the number of worker to the dns_zonemgr manually,
get the number of nm threads using the new isc_nm_getnworkers() call.

Additionally, remove the isc_pool API and manage the array of memory
context, zonetasks and loadtasks directly in the zonemgr.
This commit is contained in:
Ondřej Surý
2022-03-18 10:14:17 +01:00
parent 2707d0eeb7
commit 2bc7303af2
7 changed files with 106 additions and 194 deletions

View File

@@ -103,15 +103,15 @@ get_objects(void **state) {
&pool);
assert_int_equal(result, ISC_R_SUCCESS);
item = isc_pool_get(pool);
item = isc_pool_get(pool, 0);
assert_non_null(item);
isc_task_attach((isc_task_t *)item, &task1);
item = isc_pool_get(pool);
item = isc_pool_get(pool, 1);
assert_non_null(item);
isc_task_attach((isc_task_t *)item, &task2);
item = isc_pool_get(pool);
item = isc_pool_get(pool, 0);
assert_non_null(item);
isc_task_attach((isc_task_t *)item, &task3);