need starttime before backend db_open() is invoked

This commit is contained in:
Pierangelo Masarati 2003-05-15 01:12:17 +00:00
parent c7ce39c788
commit a004061c0a
2 changed files with 6 additions and 1 deletions

View File

@ -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();

View File

@ -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 );