mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 14:25:24 -05:00
ITS#2540 not sure, difficult to reproduce crash...
This commit is contained in:
parent
203493bea7
commit
fe1bcdeb28
1 changed files with 5 additions and 5 deletions
|
|
@ -441,11 +441,6 @@ bdb_cache_find_parent(
|
||||||
/* This node is not fully connected yet */
|
/* This node is not fully connected yet */
|
||||||
ein->bei_state = CACHE_ENTRY_NOT_LINKED;
|
ein->bei_state = CACHE_ENTRY_NOT_LINKED;
|
||||||
|
|
||||||
/* If this is the first time, save this node
|
|
||||||
* to be returned later.
|
|
||||||
*/
|
|
||||||
if ( eir == NULL ) eir = ein;
|
|
||||||
|
|
||||||
/* Insert this node into the ID tree */
|
/* Insert this node into the ID tree */
|
||||||
ldap_pvt_thread_rdwr_rlock( &bdb->bi_cache.c_rwlock );
|
ldap_pvt_thread_rdwr_rlock( &bdb->bi_cache.c_rwlock );
|
||||||
if ( avl_insert( &bdb->bi_cache.c_idtree, (caddr_t)ein,
|
if ( avl_insert( &bdb->bi_cache.c_idtree, (caddr_t)ein,
|
||||||
|
|
@ -461,6 +456,11 @@ bdb_cache_find_parent(
|
||||||
bdb_cache_entryinfo_unlock( ein );
|
bdb_cache_entryinfo_unlock( ein );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If this is the first time, save this node
|
||||||
|
* to be returned later.
|
||||||
|
*/
|
||||||
|
if ( eir == NULL ) eir = ein;
|
||||||
|
|
||||||
/* If there was a previous node, link it to this one */
|
/* If there was a previous node, link it to this one */
|
||||||
if ( ei2 ) ei2->bei_parent = ein;
|
if ( ei2 ) ei2->bei_parent = ein;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue