mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix c_leaves count
This commit is contained in:
parent
1a8e3f9e3e
commit
6bd1861101
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user