mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Fix prev commit, hdb_cache_find_parent
This commit is contained in:
parent
dcd5c74914
commit
a5546a22a8
1 changed files with 4 additions and 3 deletions
|
|
@ -495,13 +495,14 @@ hdb_cache_find_parent(
|
|||
bdb_cache_entryinfo_lock( ei2 );
|
||||
ein->bei_parent = ei2;
|
||||
|
||||
avl_insert( &ei2->bei_kids, (caddr_t)ein, bdb_rdn_cmp,
|
||||
avl_dup_error);
|
||||
ei2->bei_ckids++;
|
||||
|
||||
/* Reset all the state info */
|
||||
for (ein = eir; ein != ei2; ein=ein->bei_parent)
|
||||
ein->bei_state &= ~CACHE_ENTRY_NOT_LINKED;
|
||||
|
||||
avl_insert( &ei2->bei_kids, (caddr_t)ein, bdb_rdn_cmp,
|
||||
avl_dup_error);
|
||||
ei2->bei_ckids++;
|
||||
bdb_cache_entryinfo_unlock( ei2 );
|
||||
bdb_cache_entryinfo_lock( eir );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue