From: Ondřej Surý Date: Fri, 11 Mar 2022 10:32:48 +0000 (+0100) Subject: Remove "a temporary hack, 'rndc timerpoke'" X-Git-Tag: v9.19.0~64^2~7 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8fbb42c49c2d944f3182e53c110424abd48bacdf;p=thirdparty%2Fbind9.git Remove "a temporary hack, 'rndc timerpoke'" In 2002, "a temporary hack, 'rndc timerpoke'" was added. It's time for it to go, so it was removed. --- diff --git a/bin/named/control.c b/bin/named/control.c index d07896ecd5c..29d1cd1f0f1 100644 --- a/bin/named/control.c +++ b/bin/named/control.c @@ -278,9 +278,6 @@ named_control_docommand(isccc_sexpr_t *message, bool readonly, command_compare(command, NAMED_COMMAND_UNFREEZE)) { result = named_server_freeze(named_g_server, false, lex, text); - } else if (command_compare(command, NAMED_COMMAND_TIMERPOKE)) { - isc_timermgr_poke(named_g_timermgr); - result = ISC_R_SUCCESS; } else if (command_compare(command, NAMED_COMMAND_TRACE)) { result = named_server_setdebuglevel(named_g_server, lex); } else if (command_compare(command, NAMED_COMMAND_TSIGDELETE)) { diff --git a/bin/named/include/named/control.h b/bin/named/include/named/control.h index 29b56775fdb..1ea4c490fbb 100644 --- a/bin/named/include/named/control.h +++ b/bin/named/include/named/control.h @@ -48,7 +48,6 @@ #define NAMED_COMMAND_FREEZE "freeze" #define NAMED_COMMAND_UNFREEZE "unfreeze" #define NAMED_COMMAND_THAW "thaw" -#define NAMED_COMMAND_TIMERPOKE "timerpoke" #define NAMED_COMMAND_RECURSING "recursing" #define NAMED_COMMAND_NULL "null" #define NAMED_COMMAND_NOTIFY "notify" diff --git a/lib/isc/include/isc/timer.h b/lib/isc/include/isc/timer.h index ac3133fa31c..3983c4e386a 100644 --- a/lib/isc/include/isc/timer.h +++ b/lib/isc/include/isc/timer.h @@ -252,7 +252,4 @@ isc_timer_gettype(isc_timer_t *timer); *\li 'timer' to be a valid timer. */ -void -isc_timermgr_poke(isc_timermgr_t *m); - ISC_LANG_ENDDECLS diff --git a/lib/isc/timer.c b/lib/isc/timer.c index 02eeafe4e83..544e79655eb 100644 --- a/lib/isc/timer.c +++ b/lib/isc/timer.c @@ -92,9 +92,6 @@ struct isc_timermgr { isc_heap_t *heap; }; -void -isc_timermgr_poke(isc_timermgr_t *manager); - static inline isc_result_t schedule(isc_timer_t *timer, isc_time_t *now, bool signal_ok) { isc_timermgr_t *manager; @@ -629,13 +626,6 @@ isc__timermgr_create(isc_mem_t *mctx, isc_timermgr_t **managerp) { return (ISC_R_SUCCESS); } -void -isc_timermgr_poke(isc_timermgr_t *manager) { - REQUIRE(VALID_MANAGER(manager)); - - SIGNAL(&manager->wakeup); -} - void isc__timermgr_destroy(isc_timermgr_t **managerp) { isc_timermgr_t *manager;