From 3801ba643555d7b71e965a3b5719b1979ef469b8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 18 May 2005 04:41:24 +0000 Subject: [PATCH] ITS#3731 catch another BDB error leaking out to the frontend --- servers/slapd/back-bdb/index.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; } -- 2.39.5