]> git.sur5r.net Git - openldap/commitdiff
Ignore idl_delete_key errors. LDBM isn't transactional, state
authorKurt Zeilenga <kurt@openldap.org>
Thu, 29 Apr 1999 01:42:43 +0000 (01:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 29 Apr 1999 01:42:43 +0000 (01:42 +0000)
indexes could be hosed.

servers/slapd/back-ldbm/id2children.c

index 3d09ef412a357a972adbf8f2d32e693bf9b71302..636832f1fd061c587bbacf6ad3bd60a7e5a98178 100644 (file)
@@ -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 );