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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user