From 5fd7534f79f93ded842c3b402f737c86333f9bcc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 25 Jun 2004 20:04:16 +0000 Subject: [PATCH] Fix previous commit, deleting under suffix... --- servers/slapd/back-bdb/delete.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index eca6774136..36ef298003 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -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; -- 2.39.5