mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#9537 slap_op_time: avoid duplicates across restarts
Initialize last_ times with current time sec & usec
This commit is contained in:
parent
0c90b8c001
commit
145325dcc1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user