From: Howard Chu Date: Wed, 19 Jul 2006 00:06:57 +0000 (+0000) Subject: Fix prev commit, update kid counters too X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a2115d70c74f43a800ae6ab34f4014de52060a1;p=openldap Fix prev commit, update kid counters too --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index d82536dd22..ae7ef6c0ea 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -1030,6 +1030,8 @@ bdb_cache_modrdn( rdn.bv_len = ptr - rdn.bv_val; } ber_dupbv( &ei->bei_rdn, &rdn ); + pei->bei_ckids--; + if ( pei->bei_dkids ) pei->bei_dkids--; #endif if (!ein) { @@ -1056,6 +1058,8 @@ bdb_cache_modrdn( ei->bei_modrdns = bdb->bi_modrdns; ldap_pvt_thread_mutex_unlock( &bdb->bi_modrdns_mutex ); } + ein->bei_ckids++; + if ( ein->bei_dkids ) ein->bei_dkids++; #endif avl_insert( &ein->bei_kids, ei, bdb_rdn_cmp, avl_dup_error ); bdb_cache_entryinfo_unlock( ein );