mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +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
|
void
|
||||||
slap_op_time(time_t *t, int *nop)
|
slap_op_time(time_t *t, int *nop)
|
||||||
{
|
{
|
||||||
*t = slap_get_time();
|
|
||||||
ldap_pvt_thread_mutex_lock( &slap_op_mutex );
|
ldap_pvt_thread_mutex_lock( &slap_op_mutex );
|
||||||
|
*t = slap_get_time();
|
||||||
if ( *t == last_time ) {
|
if ( *t == last_time ) {
|
||||||
*nop = ++last_incr;
|
*nop = ++last_incr;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user