Commit fadb6c95 authored by Jan Kadlec's avatar Jan Kadlec

zone-events: Fixed flush replan.

parent a309984c
......@@ -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);
}
......
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