Skip to content
Snippets Groups Projects
Commit fa03129f authored by Lubos Slovak's avatar Lubos Slovak
Browse files

knotc: Missing RCU

parent f81aea88
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ knot_cmd_t knot_cmd_tbl[] = {
{&cmd_checkconf, 1, "checkconf", "", "\tCheck current server configuration."},
{&cmd_checkzone, 1, "checkzone", "[<zone>...]", "Check zones."},
{&cmd_memstats, 1, "memstats", "[<zone>...]", "Estimate memory use for zones."},
{&cmd_signzone, 0, "signzone", "<zone>...", "Sign zones with available DNSSEC keys (at least one zone must be specified)."},
{&cmd_signzone, 0, "signzone", "<zone>...", "Sign zones with available DNSSEC keys."},
{NULL, 0, NULL, NULL, NULL}
};
......
......@@ -257,9 +257,11 @@ static int remote_c_reload(server_t *s, remote_cmdargs_t* a)
dbg_server_verb("remote: refreshing all zones\n");
ret = server_reload(s, conf()->filename);
} else {
rcu_read_lock();
/* Reload specific zones. */
dbg_server_verb("remote: refreshing particular zones");
ret = remote_rdata_apply(s, a, &remote_zone_reload);
rcu_read_unlock();
}
return (ret != KNOT_EOK) ? ret : KNOT_CTL_ACCEPTED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment