mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Context CSN patch (1) - cleanup
- serialize search_candidates() with the read of search_context_csn
This commit is contained in:
parent
3301a31755
commit
d53c90dc29
1 changed files with 6 additions and 2 deletions
|
|
@ -707,8 +707,6 @@ dn2entry_retry:
|
|||
} else {
|
||||
search_context_csn = NULL;
|
||||
}
|
||||
|
||||
bdb_cache_entry_db_unlock( bdb->bi_dbenv, &ctxcsn_lock );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -722,6 +720,12 @@ dn2entry_retry:
|
|||
rs->sr_err = search_candidates( op, sop, rs, &base, locker, candidates, scopes );
|
||||
}
|
||||
|
||||
#ifdef LDAP_SYNC
|
||||
if ( sop->o_sync_mode != SLAP_SYNC_NONE ) {
|
||||
bdb_cache_entry_db_unlock( bdb->bi_dbenv, &ctxcsn_lock );
|
||||
}
|
||||
#endif
|
||||
|
||||
/* start cursor at beginning of candidates.
|
||||
*/
|
||||
cursor = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue