Commit 348f5814 authored by Daniel Salzman's avatar Daniel Salzman

ctl: sweep also timer DB during zone purge on configured zone

parent 70f927c4
......@@ -1132,6 +1132,8 @@ static int zone_purge(zone_t *zone, ctl_args_t *args)
// Purge the zone timers.
if (MATCH_OR_FILTER(args, CTL_FILTER_PURGE_TIMERS)) {
memset(&zone->timers, 0, sizeof(zone->timers));
(void)zone_timers_sweep(args->server->timers_db,
zone_names_distinct, zone->name);
}
// Expire the zone.
......
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