]> git.sur5r.net Git - openldap/commitdiff
Fixed exit condition code checks and log msg, was returning fail on success.
authorHoward Chu <hyc@openldap.org>
Sat, 24 Nov 2001 12:28:52 +0000 (12:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 24 Nov 2001 12:28:52 +0000 (12:28 +0000)
servers/slapd/back-bdb/delete.c

index 7b29ee0f69245ef11974a5729a501c20f24ee700..cb0f1b70e031fa611252a8ed31a3a098a1b2399d 100644 (file)
@@ -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;