Fix id2entry, let bdb_cache_release_all clean up EntryInfos

Fix idl_cache_put
This commit is contained in:
Howard Chu 2003-04-22 13:14:06 +00:00
parent 89127c93d0
commit 0afba16b9b
2 changed files with 4 additions and 8 deletions

View File

@ -26,7 +26,7 @@ int bdb_id2entry_put(
#ifdef BDB_HIER
struct berval odn, ondn;
/* We only store rdns, and they go in the id2parent database. */
/* We only store rdns, and they go in the dn2id database. */
odn = e->e_name; ondn = e->e_nname;
@ -117,12 +117,6 @@ int bdb_id2entry(
ch_free( data.data );
}
if ( rc == 0 ) {
#ifdef BDB_HIER
bdb_fix_dn(be, id, *e);
#endif
}
return rc;
}
@ -216,7 +210,7 @@ int bdb_entry_release(
}
} else {
if (e->e_private != NULL)
free (e->e_private);
BEI(e)->bei_e = NULL;
e->e_private = NULL;
bdb_entry_return ( e );
}

View File

@ -344,6 +344,8 @@ bdb_idl_cache_put(
bdb_idl_cache_entry_t idl_tmp;
bdb_idl_cache_entry_t *ee;
DBT2bv( key, &idl_tmp.kstr );
ee = (bdb_idl_cache_entry_t *) ch_malloc(
sizeof( bdb_idl_cache_entry_t ) );
ee->db = db;