From: Pierangelo Masarati Date: Sat, 26 Jan 2002 14:33:31 +0000 (+0000) Subject: appropriately detect index delete failure X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=563736859c4f971ecab694b2c3f8cf0d1cc0dd7c;p=openldap appropriately detect index delete failure --- diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index 1e38499fdf..0c1f352e1d 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -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(); diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index adf07c7566..c4bb090f57 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -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