From f12290c64faf4511bbf25c42c050f31c3627cf13 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Jun 2010 00:00:59 +0000 Subject: [PATCH] move slap_graduate_commit_csn() to after entry lock is released --- servers/slapd/back-bdb/add.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5