Commit c203665f authored by Daniel Salzman's avatar Daniel Salzman

zone: refresh slave zone if started and not exists

parent 4e11b42e
......@@ -230,10 +230,7 @@ static zone_t *create_zone_new(conf_t *conf, const knot_dname_t *name,
zone_events_enqueue(zone, ZONE_EVENT_LOAD);
break;
case ZONE_STATUS_BOOSTRAP:
if (zone_events_get_time(zone, ZONE_EVENT_REFRESH) == 0) {
// Plan immediate refresh if not already planned.
zone_events_schedule(zone, ZONE_EVENT_REFRESH, ZONE_EVENT_NOW);
}
zone_events_schedule(zone, ZONE_EVENT_REFRESH, ZONE_EVENT_NOW);
break;
case ZONE_STATUS_NOT_FOUND:
break;
......
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