Skip to content
Snippets Groups Projects
Commit a004061c authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

need starttime before backend db_open() is invoked

parent c7ce39c7
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment