]> git.sur5r.net Git - openldap/commitdiff
Fix c_leaves count
authorHoward Chu <hyc@openldap.org>
Fri, 8 May 2009 06:37:05 +0000 (06:37 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 8 May 2009 06:37:05 +0000 (06:37 +0000)
servers/slapd/back-bdb/cache.c

index 2525e2b0b549bfdafb01088d26f3ba56b3726fcd..5b79b665a2aaba44d07dd41ce5c99b98f35f8422 100644 (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++;
-               }
+               if ( ei2 && ( ei2->bei_kids || !ei2->bei_id ))
+                       bdb->bi_cache.c_leaves++;
                ldap_pvt_thread_rdwr_wunlock( &bdb->bi_cache.c_rwlock );
 
 gotparent: