mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
ITS#8120 Move final CHECK_CSN block to before the mutex is unlocked.
This commit is contained in:
parent
b500b9148c
commit
2c34d2fda6
@ -3926,12 +3926,6 @@ syncrepl_updateCookie(
|
|||||||
ch_free( sc.sids );
|
ch_free( sc.sids );
|
||||||
ber_bvarray_free( sc.ctxcsn );
|
ber_bvarray_free( sc.ctxcsn );
|
||||||
}
|
}
|
||||||
ldap_pvt_thread_mutex_unlock( &si->si_cookieState->cs_mutex );
|
|
||||||
|
|
||||||
op->o_bd = be;
|
|
||||||
op->o_tmpfree( op->o_csn.bv_val, op->o_tmpmemctx );
|
|
||||||
BER_BVZERO( &op->o_csn );
|
|
||||||
if ( mod.sml_next ) slap_mods_free( mod.sml_next, 1 );
|
|
||||||
|
|
||||||
#ifdef CHECK_CSN
|
#ifdef CHECK_CSN
|
||||||
for ( i=0; i<si->si_cookieState->cs_num; i++ ) {
|
for ( i=0; i<si->si_cookieState->cs_num; i++ ) {
|
||||||
@ -3939,6 +3933,13 @@ syncrepl_updateCookie(
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ldap_pvt_thread_mutex_unlock( &si->si_cookieState->cs_mutex );
|
||||||
|
|
||||||
|
op->o_bd = be;
|
||||||
|
op->o_tmpfree( op->o_csn.bv_val, op->o_tmpmemctx );
|
||||||
|
BER_BVZERO( &op->o_csn );
|
||||||
|
if ( mod.sml_next ) slap_mods_free( mod.sml_next, 1 );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user