From: Libor Peltan Date: Wed, 27 Jun 2018 13:58:33 +0000 (+0200) Subject: ctl: use event scheduler for zone expiration instead of direct call X-Git-Tag: v2.7.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688e77e46a572fe88d50d7c340fbd58e78eeb8bb;p=thirdparty%2Fknot-dns.git ctl: use event scheduler for zone expiration instead of direct call --- diff --git a/src/knot/ctl/commands.c b/src/knot/ctl/commands.c index 910789fa72..cf203b6ad3 100644 --- a/src/knot/ctl/commands.c +++ b/src/knot/ctl/commands.c @@ -23,7 +23,7 @@ #include "knot/conf/confio.h" #include "knot/ctl/commands.h" #include "knot/dnssec/key-events.h" -#include "knot/events/handlers.h" +#include "knot/events/events.h" #include "knot/events/log.h" #include "knot/nameserver/query_module.h" #include "knot/updates/zone-update.h" @@ -1122,7 +1122,7 @@ static int zone_purge(zone_t *zone, ctl_args_t *args) // Expire the zone. if (MATCH_OR_FILTER(args, CTL_FILTER_PURGE_EXPIRE)) { - (void)event_expire(conf(), zone); + zone_events_schedule_user(zone, ZONE_EVENT_EXPIRE); } // Purge the zone file.