mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
ITS#5709 make sure CSNs are generated and queued atomically
This commit is contained in:
parent
4c60645bfb
commit
60450c7045
1 changed files with 2 additions and 2 deletions
|
|
@ -192,10 +192,10 @@ slap_get_csn(
|
|||
/* gmtime doesn't always need a mutex, but lutil_csnstr does */
|
||||
ldap_pvt_thread_mutex_lock( &gmtime_mutex );
|
||||
csn->bv_len = lutil_csnstr( csn->bv_val, csn->bv_len, slap_serverID, 0 );
|
||||
ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
|
||||
|
||||
if ( manage_ctxcsn )
|
||||
slap_queue_csn( op, csn );
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue