Skip to content
Snippets Groups Projects
Commit 0b008fc1 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

events: schedule bootstrap only for slave zone

parent f4c81422
No related branches found
No related tags found
1 merge request!483handlers: rebootstrap zone if load fails
......@@ -395,8 +395,10 @@ int event_load(zone_t *zone)
fail:
zone_contents_deep_free(&contents);
/* Try to bootsrap the zone if local error. */
zone_events_schedule(zone, ZONE_EVENT_XFER, ZONE_EVENT_NOW);
/* Try to bootstrap the zone if local error. */
if (zone_is_slave(zone) && !zone_events_is_scheduled(zone, ZONE_EVENT_XFER)) {
zone_events_schedule(zone, ZONE_EVENT_XFER, ZONE_EVENT_NOW);
}
return ret;
}
......
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