svn rev #25131: trunk/src/kadmin/server/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Sep 2 13:07:57 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25131
Commit By: ghudson
Log Message:
Remove vestigial reset_db() in kadmind.

>From npmccallum at redhat.com.


Changed Files:
U   trunk/src/kadmin/server/ovsec_kadmd.c
Modified: trunk/src/kadmin/server/ovsec_kadmd.c
===================================================================
--- trunk/src/kadmin/server/ovsec_kadmd.c	2011-09-02 17:07:55 UTC (rev 25130)
+++ trunk/src/kadmin/server/ovsec_kadmd.c	2011-09-02 17:07:57 UTC (rev 25131)
@@ -66,7 +66,6 @@
 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 @@
     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 */
@@ -701,38 +700,6 @@
 }
 
 /*
- * 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
  *
  * Purpose: sets flags saying the server got a signal and that it




More information about the cvs-krb5 mailing list