Skip to content
Snippets Groups Projects
Commit fadb6c95 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

zone-events: Fixed flush replan.

parent a309984c
No related branches found
No related tags found
No related merge requests found
......@@ -621,7 +621,7 @@ static void replan_flush(zone_t *zone, const zone_t *old_zone)
}
// Pick time to schedule: either reuse or schedule sooner than old event.
const time_t schedule_at = MIN(time(NULL) - zone->conf->dbsync_timeout, flush_time);
const time_t schedule_at = MIN(time(NULL) + zone->conf->dbsync_timeout, flush_time);
zone_events_schedule_at(zone, ZONE_EVENT_FLUSH, schedule_at);
}
......
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