mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5370 slap_op_time mutex
This commit is contained in:
parent
df1aa2fa89
commit
20584e94f4
@ -129,8 +129,8 @@ slap_op_free( Operation *op, void *ctx )
|
||||
void
|
||||
slap_op_time(time_t *t, int *nop)
|
||||
{
|
||||
*t = slap_get_time();
|
||||
ldap_pvt_thread_mutex_lock( &slap_op_mutex );
|
||||
*t = slap_get_time();
|
||||
if ( *t == last_time ) {
|
||||
*nop = ++last_incr;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user