]> git.sur5r.net Git - openldap/commitdiff
ITS#3731 catch another BDB error leaking out to the frontend
authorHoward Chu <hyc@openldap.org>
Wed, 18 May 2005 04:41:24 +0000 (04:41 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 18 May 2005 04:41:24 +0000 (04:41 +0000)
servers/slapd/back-bdb/index.c

index ea78c1098e8f39d0468562eafd17d30c6a17195e..91c5a74626a2bd3ad58dd898de48a0d0041fb8be 100644 (file)
@@ -254,6 +254,16 @@ static int indexer(
        }
 
 done:
+       switch( rc ) {
+       /* The callers all know how to deal with these results */
+       case 0:
+       case DB_LOCK_DEADLOCK:
+       case DB_LOCK_NOTGRANTED:
+               break;
+       /* Anything else is bad news */
+       default:
+               rc = LDAP_OTHER;
+       }
        return rc;
 }