Fix c_leaves count

This commit is contained in:
Howard Chu 2009-05-08 06:37:05 +00:00
parent 1a8e3f9e3e
commit 6bd1861101

View File

@ -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++;
}
ldap_pvt_thread_rdwr_wunlock( &bdb->bi_cache.c_rwlock );
gotparent: