Context CSN patch (1) - cleanup

- serialize search_candidates() with the read of search_context_csn
This commit is contained in:
Jong Hyuk Choi 2003-08-25 17:10:18 +00:00
parent 3301a31755
commit d53c90dc29

View file

@ -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;