Commit ff5b8b0c authored by Lubos Slovak's avatar Lubos Slovak

Added missing conf lock.

parent ec76caf8
......@@ -730,6 +730,8 @@ static int zones_zonefile_sync_ev(event_t *e)
journal_t *j = journal_retain(zd->ixfr_db);
int ret = zones_zonefile_sync(zone, j);
journal_release(j);
conf_read_lock();
if (ret == KNOTD_EOK) {
log_zone_info("Applied differences of '%s' to zonefile.\n",
zd->conf->name);
......@@ -738,6 +740,7 @@ static int zones_zonefile_sync_ev(event_t *e)
"to zonefile.\n",
zd->conf->name);
}
conf_read_unlock();
/* Reschedule. */
conf_read_lock();
......
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