From: Greg Hudson Date: Fri, 2 Sep 2011 17:07:57 +0000 (+0000) Subject: Remove vestigial reset_db() in kadmind X-Git-Tag: krb5-1.10-alpha1~244 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=55b8963cc08ce8005f513f3ad912b6cc3302218b;p=krb5.git Remove vestigial reset_db() in kadmind From npmccallum@redhat.com. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25131 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/server/ovsec_kadmd.c b/src/kadmin/server/ovsec_kadmd.c index b817f3ad1..91cd255ec 100644 --- a/src/kadmin/server/ovsec_kadmd.c +++ b/src/kadmin/server/ovsec_kadmd.c @@ -66,7 +66,6 @@ extern int daemon(int, int); void setup_signal_handlers(iprop_role iproprole); void request_exit(int); void request_hup(int); -void reset_db(void); #ifdef POSIX_SIGNALS static struct sigaction s_action; @@ -613,7 +612,7 @@ kterr: if (nofork) fprintf(stderr, _("%s: starting...\n"), whoami); - loop_listen_and_process(global_server_handle, whoami, reset_db); + loop_listen_and_process(global_server_handle, whoami, NULL); krb5_klog_syslog(LOG_INFO, _("finished, exiting")); /* Clean up memory, etc */ @@ -700,38 +699,6 @@ void request_hup(int signum) return; } -/* - * Function: reset_db - * - * Purpose: flushes the currently opened database files to disk. - * - * Arguments: - * Requires: - * Effects: - * - * Currently, just sets signal_requests_reset to 0. The kdb and adb - * libraries used to be sufficiently broken that it was prudent to - * close and reopen the databases periodically. They are no longer - * that broken, so this function is not necessary. - */ -void reset_db(void) -{ -#ifdef notdef - kadm5_ret_t ret; - char *errmsg; - - if (ret = kadm5_flush(global_server_handle)) { - krb5_klog_syslog(LOG_ERR, "FATAL ERROR! %s while flushing databases. " - "Databases may be corrupt! Aborting.", - krb5_get_error_message (context, ret)); - krb5_klog_close(context); - exit(3); - } -#endif - - return; -} - /* * Function: request_exit *