From: Howard Chu Date: Wed, 30 Jun 2010 00:00:59 +0000 (+0000) Subject: move slap_graduate_commit_csn() to after entry lock is released X-Git-Tag: MIGRATION_CVS2GIT~559 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f12290c64faf4511bbf25c42c050f31c3627cf13;p=openldap move slap_graduate_commit_csn() to after entry lock is released --- diff --git a/servers/slapd/back-bdb/add.c b/servers/slapd/back-bdb/add.c index a57c5be506..c5273ddb90 100644 --- a/servers/slapd/back-bdb/add.c +++ b/servers/slapd/back-bdb/add.c @@ -513,7 +513,6 @@ retry: /* transaction retry */ return_results: success = rs->sr_err; send_ldap_result( op, rs ); - slap_graduate_commit_csn( op ); if( ltid != NULL ) { TXN_ABORT( ltid ); @@ -538,10 +537,11 @@ return_results: } } + slap_graduate_commit_csn( op ); + if( postread_ctrl != NULL && (*postread_ctrl) != NULL ) { slap_sl_free( (*postread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx ); slap_sl_free( *postread_ctrl, op->o_tmpmemctx ); } - return rs->sr_err; }