From: Howard Chu Date: Fri, 8 May 2009 06:37:05 +0000 (+0000) Subject: Fix c_leaves count X-Git-Tag: ACLCHECK_0~567 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bd18611016f9dab714ca35dc80c52df04ae71c6;p=openldap Fix c_leaves count --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 2525e2b0b5..5b79b665a2 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -609,11 +609,10 @@ par2: ldap_pvt_thread_rdwr_wlock( &bdb->bi_cache.c_rwlock ); goto par2; } - if ( add ) { + if ( add ) bdb->bi_cache.c_eiused++; - if ( ei2 && ( ei2->bei_kids || !ei2->bei_id )) - bdb->bi_cache.c_leaves++; - } + if ( ei2 && ( ei2->bei_kids || !ei2->bei_id )) + bdb->bi_cache.c_leaves++; ldap_pvt_thread_rdwr_wunlock( &bdb->bi_cache.c_rwlock ); gotparent: