]> git.sur5r.net Git - openldap/commitdiff
ITS#3301 check for dn2entry failure
authorHoward Chu <hyc@openldap.org>
Wed, 25 Aug 2004 13:55:55 +0000 (13:55 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 25 Aug 2004 13:55:55 +0000 (13:55 +0000)
servers/slapd/back-bdb/ctxcsn.c

index 7c2b31ec366244d775d8dafc561c6a3b0ed7ef76..817afc98a5ec4f073f2a020f0d4b56681461b827 100644 (file)
@@ -58,6 +58,15 @@ bdb_csn_commit(
 
        rc =  bdb_dn2entry( op, tid, &op->o_bd->be_context_csn, &ctxcsn_ei,
                        1, locker, &ctxcsn_lock );
+       switch( rc ) {
+       case 0:
+               break;
+       case DB_LOCK_DEADLOCK:
+       case DB_LOCK_NOTGRANTED:
+               return BDB_CSN_RETRY;
+       default:
+               return BDB_CSN_ABORT;
+       }
        
        *ctxcsn_e = ctxcsn_ei->bei_e;