From: Howard Chu Date: Sat, 15 Nov 2008 08:49:44 +0000 (+0000) Subject: ITS#5709 make sure CSNs are generated and queued atomically X-Git-Tag: ACLCHECK_0~1106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60450c7045bc54dd86c6b8df19e45fee1088fc30;p=openldap ITS#5709 make sure CSNs are generated and queued atomically --- diff --git a/servers/slapd/ctxcsn.c b/servers/slapd/ctxcsn.c index 23a54af7fd..d279155718 100644 --- a/servers/slapd/ctxcsn.c +++ b/servers/slapd/ctxcsn.c @@ -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; }