mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
need starttime before backend db_open() is invoked
This commit is contained in:
parent
c7ce39c788
commit
a004061c0a
2 changed files with 6 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue