From af26f023e73bfe362725f05ba72c20311966e19f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 29 Apr 1999 01:42:43 +0000 Subject: [PATCH] Ignore idl_delete_key errors. LDBM isn't transactional, state indexes could be hosed. --- servers/slapd/back-ldbm/id2children.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ); -- 2.39.5