Skip to content
Snippets Groups Projects
Commit 21874f9e authored by Marek Vavruša's avatar Marek Vavruša
Browse files

events: immediate sync after xfer (if configured)

parent 9119f9a5
No related branches found
No related tags found
No related merge requests found
......@@ -354,6 +354,10 @@ static int event_xfer(zone_t *zone)
zone_events_schedule(zone, ZONE_EVENT_EXPIRE, soa_graceful_expire(soa));
zone_events_schedule(zone, ZONE_EVENT_REFRESH, knot_soa_refresh(soa));
zone_events_schedule(zone, ZONE_EVENT_NOTIFY, ZONE_EVENT_NOW);
/* Sync zonefile immediately if configured. */
if (zone->conf->dbsync_timeout == 0) {
zone_events_schedule(zone, ZONE_EVENT_FLUSH, ZONE_EVENT_NOW);
}
zone->bootstrap_retry = ZONE_EVENT_NOW;
zone->flags &= ~ZONE_FORCE_AXFR;
/* Trim extra heap. */
......
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