From: Howard Chu Date: Mon, 1 Jan 2007 07:09:22 +0000 (+0000) Subject: Fix prev commit, hdb_cache_find_parent X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~283 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a5546a22a88038a92ecb0c299381f5b94f6d5908;p=openldap Fix prev commit, hdb_cache_find_parent --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 1148826774..1962778208 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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 );