mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix id2entry, let bdb_cache_release_all clean up EntryInfos
Fix idl_cache_put
This commit is contained in:
parent
89127c93d0
commit
0afba16b9b
@ -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 );
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user