]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit, deleting under suffix...
authorHoward Chu <hyc@openldap.org>
Fri, 25 Jun 2004 20:04:16 +0000 (20:04 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Jun 2004 20:04:16 +0000 (20:04 +0000)
servers/slapd/back-bdb/delete.c

index eca67741364b056f80bc91e46b9e24dba4e4025d..36ef298003b312f422f2ad400706589987162975 100644 (file)
@@ -206,12 +206,14 @@ retry:    /* transaction retry */
        }
 
        rc = bdb_cache_find_id( op, ltid, eip->bei_id, &eip, 0, locker, &plock );
-       if ( rc ) {
-               switch( rc ) {
-               case DB_LOCK_DEADLOCK:
-               case DB_LOCK_NOTGRANTED:
-                       goto retry;
-               }
+       switch( rc ) {
+       case DB_LOCK_DEADLOCK:
+       case DB_LOCK_NOTGRANTED:
+               goto retry;
+       case 0:
+       case DB_NOTFOUND:
+               break;
+       default:
                rs->sr_err = LDAP_OTHER;
                rs->sr_text = "internal error";
                goto return_results;