From 6bd18611016f9dab714ca35dc80c52df04ae71c6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 8 May 2009 06:37:05 +0000 Subject: [PATCH] Fix c_leaves count --- servers/slapd/back-bdb/cache.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: -- 2.39.5