From: Pierangelo Masarati Date: Thu, 15 May 2003 01:12:17 +0000 (+0000) Subject: need starttime before backend db_open() is invoked X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~130 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a004061c0a8febd347df3b249d2c16f6ceef73bc;p=openldap need starttime before backend db_open() is invoked --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index ae5a754f7d..73e7479155 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1115,7 +1115,6 @@ slapd_daemon_task( { int l; time_t last_idle_check = 0; - time( &starttime ); if ( global_idletimeout > 0 ) { last_idle_check = slap_get_time(); diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 4028953a7d..ea41382b9a 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -524,6 +524,12 @@ int main( int argc, char **argv ) mal_leaktrace(1); #endif + /* + * FIXME: moved here from slapd_daemon_task() + * because back-monitor db_open() needs it + */ + time( &starttime ); + if ( slap_startup( NULL ) != 0 ) { rc = 1; SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 21 );