From: Kurt Zeilenga Date: Thu, 29 Apr 1999 01:42:43 +0000 (+0000) Subject: Ignore idl_delete_key errors. LDBM isn't transactional, state X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af26f023e73bfe362725f05ba72c20311966e19f;p=openldap Ignore idl_delete_key errors. LDBM isn't transactional, state indexes could be hosed. --- diff --git a/servers/slapd/back-ldbm/id2children.c b/servers/slapd/back-ldbm/id2children.c index 3d09ef412a..636832f1fd 100644 --- a/servers/slapd/back-ldbm/id2children.c +++ b/servers/slapd/back-ldbm/id2children.c @@ -80,10 +80,17 @@ id2children_remove( key.dsize = strlen( buf ) + 1; if ( idl_delete_key( be, db, key, e->e_id ) != 0 ) { - Debug( LDAP_DEBUG_TRACE, "<= id2children_remove -1 (idl_delete)\n", +#if 0 + Debug( LDAP_DEBUG_ANY, + "<= id2children_remove: idl_delete_key failure\n", 0, 0, 0 ); ldbm_cache_close( be, db ); return( -1 ); +#else + Debug( LDAP_DEBUG_ANY, + "<= id2children_remove: ignoring idl_delete_key failure\n", + 0, 0, 0 ); +#endif } ldbm_cache_close( be, db );