From 60450c7045bc54dd86c6b8df19e45fee1088fc30 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 15 Nov 2008 08:49:44 +0000 Subject: [PATCH] ITS#5709 make sure CSNs are generated and queued atomically --- servers/slapd/ctxcsn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5