From a5546a22a88038a92ecb0c299381f5b94f6d5908 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 1 Jan 2007 07:09:22 +0000 Subject: [PATCH] Fix prev commit, hdb_cache_find_parent --- servers/slapd/back-bdb/cache.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ); -- 2.39.5