Commit 8f8561a4 authored by Marek Vavrusa's avatar Marek Vavrusa

Query processing is already RCU guarded, removed extra lock for UPDATE.

parent 8326f549
......@@ -67,14 +67,12 @@ static int update_forward(struct query_data *qdata)
static int update_process(knot_pkt_t *resp, struct query_data *qdata)
{
/*! \todo Reusing the API for compatibility reasons. */
rcu_read_lock();
knot_rcode_t rcode = qdata->rcode;
int ret = zones_process_update_auth((knot_zone_t *)qdata->zone, qdata->query,
&rcode,
&qdata->param->query_source,
qdata->sign.tsig_key);
qdata->rcode = rcode;
rcu_read_unlock();
return ret;
}
......
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