]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/id2children.c
When recreating a database from an ldif file created by ldbmcat,
[openldap] / servers / slapd / back-ldbm / id2children.c
index 904a37f970f72977a70e2ed5fdfd135ec5677fc2..55b9d8d5189d3e3c5688f8bfdb08b7505494f7fc 100644 (file)
@@ -17,10 +17,8 @@ id2children_add(
     Entry      *e
 )
 {
-       struct dbcache  *db;
+       DBCache *db;
        Datum           key;
-       int             len, rc;
-       ID_BLOCK                *idl;
        char            buf[20];
 
        ldbm_datum_init( key );
@@ -61,10 +59,8 @@ id2children_remove(
     Entry      *e
 )
 {
-       struct dbcache  *db;
+       DBCache *db;
        Datum           key;
-       int             len, rc;
-       ID_BLOCK                *idl;
        char            buf[20];
 
        Debug( LDAP_DEBUG_TRACE, "=> id2children_remove( %ld, %ld )\n", p ? p->e_id
@@ -84,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 );
@@ -102,7 +105,7 @@ has_children(
     Entry      *p
 )
 {
-       struct dbcache  *db;
+       DBCache *db;
        Datum           key;
        int             rc = 0;
        ID_BLOCK                *idl;