]> git.sur5r.net Git - openldap/commitdiff
appropriately detect index delete failure
authorPierangelo Masarati <ando@openldap.org>
Sat, 26 Jan 2002 14:33:31 +0000 (14:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 26 Jan 2002 14:33:31 +0000 (14:33 +0000)
servers/slapd/back-bdb/delete.c
servers/slapd/back-bdb/index.c

index 1e38499fdfedf0bcb87034978320c81f26874d8b..0c1f352e1d1ab495fad178a6e8c99c79435a7adc 100644 (file)
@@ -356,8 +356,7 @@ retry:      /* transaction retry */
        }
 
 return_results:
-       send_ldap_result( conn, op, LDAP_SUCCESS,
-               NULL, text, NULL, NULL );
+       send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
 
        if(rc == LDAP_SUCCESS && bdb->bi_txn_cp ) {
                ldap_pvt_thread_yield();
index adf07c75666507556d2a18f484ace23714c198a7..c4bb090f5703d23cc757f2bd9a68d35d5211d091 100644 (file)
@@ -363,10 +363,10 @@ bdb_index_entry(
                if( rc != LDAP_SUCCESS ) {
 #ifdef NEW_LOGGING
                        LDAP_LOG(( "index", LDAP_LEVEL_ENTRY,
-                               "index_entry: success\n" ));
+                               "index_entry: failure (%d)\n", rc ));
 #else
                        Debug( LDAP_DEBUG_TRACE,
-                               "<= index_entry_%s( %ld, \"%s\" ) success\n",
+                               "<= index_entry_%s( %ld, \"%s\" ) failure\n",
                                op == SLAP_INDEX_ADD_OP ? "add" : "del",
                                (long) e->e_id, e->e_dn );
 #endif