Commit cf99e06e authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9537 slap_op_time: avoid duplicates across restarts

Initialize last_ times with current time sec & usec
parent b8d3bdb9
...@@ -43,7 +43,11 @@ static int last_incr; ...@@ -43,7 +43,11 @@ static int last_incr;
void slap_op_init(void) void slap_op_init(void)
{ {
struct timeval tv;
ldap_pvt_thread_mutex_init( &slap_op_mutex ); 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) void slap_op_destroy(void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment