Commit baa54537 authored by Lubos Slovak's avatar Lubos Slovak

Waiting for readers also after DNSSEC signing.

When happening during reload, there may be some readers.

refs #4
parent 0ba602e9
......@@ -2967,11 +2967,10 @@ int xfrin_switch_zone(knot_zone_t *zone,
// and we do not search for new nodes anymore
knot_zone_contents_set_gen_old(new_contents);
if (transfer_type != XFR_TYPE_DNSSEC) {
// wait for readers to finish
dbg_xfrin_verb("Waiting for readers to finish...\n");
synchronize_rcu();
}
// wait for readers to finish
dbg_xfrin_verb("Waiting for readers to finish...\n");
synchronize_rcu();
// destroy the old zone
dbg_xfrin_verb("Freeing old zone: %p\n", old);
......
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