From: Howard Chu Date: Wed, 18 May 2005 04:41:24 +0000 (+0000) Subject: ITS#3731 catch another BDB error leaking out to the frontend X-Git-Tag: OPENLDAP_AC_BP~629 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3801ba643555d7b71e965a3b5719b1979ef469b8;p=openldap ITS#3731 catch another BDB error leaking out to the frontend --- diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index ea78c1098e..91c5a74626 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -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; }