]> git.sur5r.net Git - openldap/commitdiff
move slap_graduate_commit_csn() to after entry lock is released
authorHoward Chu <hyc@openldap.org>
Wed, 30 Jun 2010 00:00:59 +0000 (00:00 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 30 Jun 2010 00:00:59 +0000 (00:00 +0000)
servers/slapd/back-bdb/add.c

index a57c5be506a96fc81d1ca6054a294a3036a904b6..c5273ddb90bdfb8a4e638e4576bdfe3a5c59879e 100644 (file)
@@ -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;
 }