Commit a5c21d58 authored by Witold Krecicki's avatar Witold Krecicki

Merge branch '1650-fix-race-in-killoldestclient-v9_16' into 'v9_16'

Destroy query in killoldestquery under a lock.

See merge request !3162
parents ce4866f4 aec3dd28
Pipeline #35820 passed with stages
in 1 minute and 38 seconds
......@@ -170,13 +170,11 @@ ns_client_killoldestquery(ns_client_t *client) {
oldest = ISC_LIST_HEAD(client->manager->recursing);
if (oldest != NULL) {
ISC_LIST_UNLINK(client->manager->recursing, oldest, rlink);
UNLOCK(&client->manager->reclock);
ns_query_cancel(oldest);
ns_stats_increment(client->sctx->nsstats,
ns_statscounter_reclimitdropped);
} else {
UNLOCK(&client->manager->reclock);
}
UNLOCK(&client->manager->reclock);
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment