From: Howard Chu Date: Wed, 21 Nov 2007 14:55:40 +0000 (+0000) Subject: Minor cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a0fbe9f04358a43f4b9f79e9f43dad7b07bea00d;p=openldap Minor cleanup --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 6f673dd9f6..636ea7cf66 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -1183,16 +1183,15 @@ bdb_cache_modrdn( #ifdef BDB_HIER /* parent might now have grandkids */ if ( ein->bei_state & CACHE_ENTRY_NO_GRANDKIDS && - !(ei->bei_state & (CACHE_ENTRY_NO_KIDS))) + !(ei->bei_state & CACHE_ENTRY_NO_KIDS)) ein->bei_state ^= CACHE_ENTRY_NO_GRANDKIDS; - { - /* Record the generation number of this change */ - ldap_pvt_thread_mutex_lock( &bdb->bi_modrdns_mutex ); - bdb->bi_modrdns++; - ei->bei_modrdns = bdb->bi_modrdns; - ldap_pvt_thread_mutex_unlock( &bdb->bi_modrdns_mutex ); - } + /* Record the generation number of this change */ + ldap_pvt_thread_mutex_lock( &bdb->bi_modrdns_mutex ); + bdb->bi_modrdns++; + ei->bei_modrdns = bdb->bi_modrdns; + ldap_pvt_thread_mutex_unlock( &bdb->bi_modrdns_mutex ); + ein->bei_ckids++; if ( ein->bei_dkids ) ein->bei_dkids++; #endif