From 13696c0b223bc109fc217a44c1eeca0499a8f9b5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 24 Nov 2001 12:28:52 +0000 Subject: [PATCH] Fixed exit condition code checks and log msg, was returning fail on success. --- servers/slapd/back-bdb/delete.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index 7b29ee0f69..cb0f1b70e0 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -284,16 +284,16 @@ retry: /* transaction retry */ ltid = NULL; op->o_private = NULL; - if( rc == 0 ) { + if( rc != 0 ) { Debug( LDAP_DEBUG_TRACE, - "bdb_add: txn_commit failed: %s (%d)\n", + "bdb_delete: txn_commit failed: %s (%d)\n", db_strerror(rc), rc, 0 ); rc = LDAP_OTHER; text = "commit failed"; } else { Debug( LDAP_DEBUG_TRACE, - "bdb_add: added id=%08lx dn=\"%s\"\n", + "bdb_delete: deleted id=%08lx dn=\"%s\"\n", e->e_id, e->e_dn, 0 ); rc = LDAP_SUCCESS; text = NULL; -- 2.39.5