Entry *e
)
{
- struct dbcache *db;
+ DBCache *db;
Datum key;
- int len, rc;
- ID_BLOCK *idl;
char buf[20];
ldbm_datum_init( key );
- Debug( LDAP_DEBUG_TRACE, "=> id2children_add( %lu, %lu )\n",
+ Debug( LDAP_DEBUG_TRACE, "=> id2children_add( %ld, %ld )\n",
p ? p->e_id : 0, e->e_id, 0 );
if ( (db = ldbm_cache_open( be, "id2children", LDBM_SUFFIX,
Entry *e
)
{
- struct dbcache *db;
+ DBCache *db;
Datum key;
- int len, rc;
- ID_BLOCK *idl;
char buf[20];
- Debug( LDAP_DEBUG_TRACE, "=> id2children_remove( %lu, %lu )\n", p ? p->e_id
+ Debug( LDAP_DEBUG_TRACE, "=> id2children_remove( %ld, %ld )\n", p ? p->e_id
: 0, e->e_id, 0 );
if ( (db = ldbm_cache_open( be, "id2children", LDBM_SUFFIX,
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 );
Entry *p
)
{
- struct dbcache *db;
+ DBCache *db;
Datum key;
int rc = 0;
ID_BLOCK *idl;
ldbm_datum_init( key );
- Debug( LDAP_DEBUG_TRACE, "=> has_children( %lu )\n", p->e_id , 0, 0 );
+ Debug( LDAP_DEBUG_TRACE, "=> has_children( %ld )\n", p->e_id , 0, 0 );
if ( (db = ldbm_cache_open( be, "id2children", LDBM_SUFFIX,
LDBM_WRCREAT )) == NULL ) {
rc = 1;
}
- Debug( LDAP_DEBUG_TRACE, "<= has_children( %lu ): %s\n",
+ Debug( LDAP_DEBUG_TRACE, "<= has_children( %ld ): %s\n",
p->e_id, rc ? "yes" : "no", 0 );
return( rc );
}