change dns_db_settask() to _setloop()

The mechanism for associating a worker task to a database now
uses loops rather than tasks.

For this reason, the parameters to dns_cache_create() have been
updated to take a loop manager rather than a task manager.
This commit is contained in:
Evan Hunt
2022-10-26 22:36:04 -07:00
parent 73d36a3901
commit 09ee254514
12 changed files with 90 additions and 120 deletions

View File

@@ -41,7 +41,6 @@
#include <isc/result.h>
#include <isc/stdio.h>
#include <isc/string.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <isc/util.h>
@@ -72,7 +71,7 @@ dns_test_makeview(const char *name, bool with_cache, dns_view_t **viewp) {
}
if (with_cache) {
result = dns_cache_create(taskmgr, dns_rdataclass_in, "",
result = dns_cache_create(loopmgr, dns_rdataclass_in, "",
&cache);
if (result != ISC_R_SUCCESS) {
dns_view_detach(&view);