mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Minor cleanup
This commit is contained in:
parent
a6c4cf8578
commit
a0fbe9f043
1 changed files with 7 additions and 8 deletions
|
|
@ -1183,16 +1183,15 @@ bdb_cache_modrdn(
|
||||||
#ifdef BDB_HIER
|
#ifdef BDB_HIER
|
||||||
/* parent might now have grandkids */
|
/* parent might now have grandkids */
|
||||||
if ( ein->bei_state & CACHE_ENTRY_NO_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;
|
ein->bei_state ^= CACHE_ENTRY_NO_GRANDKIDS;
|
||||||
|
|
||||||
{
|
/* Record the generation number of this change */
|
||||||
/* Record the generation number of this change */
|
ldap_pvt_thread_mutex_lock( &bdb->bi_modrdns_mutex );
|
||||||
ldap_pvt_thread_mutex_lock( &bdb->bi_modrdns_mutex );
|
bdb->bi_modrdns++;
|
||||||
bdb->bi_modrdns++;
|
ei->bei_modrdns = bdb->bi_modrdns;
|
||||||
ei->bei_modrdns = bdb->bi_modrdns;
|
ldap_pvt_thread_mutex_unlock( &bdb->bi_modrdns_mutex );
|
||||||
ldap_pvt_thread_mutex_unlock( &bdb->bi_modrdns_mutex );
|
|
||||||
}
|
|
||||||
ein->bei_ckids++;
|
ein->bei_ckids++;
|
||||||
if ( ein->bei_dkids ) ein->bei_dkids++;
|
if ( ein->bei_dkids ) ein->bei_dkids++;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue