ITS#9537 slap_op_time: avoid duplicates across restarts

Initialize last_ times with current time sec & usec
This commit is contained in:
Howard Chu 2021-04-27 17:10:51 +01:00
parent 0c90b8c001
commit 145325dcc1

View File

@ -43,7 +43,11 @@ static int last_incr;
void slap_op_init(void)
{
struct timeval tv;
ldap_pvt_thread_mutex_init( &slap_op_mutex );
gettimeofday( &tv, NULL );
last_time = tv.tv_sec;
last_incr = tv.tv_usec;
}
void slap_op_destroy(void)