mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-14 02:43:04 -05:00
ITS#9823 Only request minCSN if accesslog is around
This commit is contained in:
parent
cfa6c07c0e
commit
207604c0b5
1 changed files with 5 additions and 2 deletions
|
|
@ -3336,7 +3336,7 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) {
|
|||
numcsns, sids, &mincsn, minsid ) ) {
|
||||
do_present = SS_PRESENT;
|
||||
}
|
||||
} else if ( si->si_nopres && si->si_usehint ) {
|
||||
} else if ( ad_minCSN != NULL && si->si_nopres && si->si_usehint ) {
|
||||
/* We are instructed to trust minCSN if it exists. */
|
||||
Entry *e;
|
||||
Attribute *a = NULL;
|
||||
|
|
@ -3829,7 +3829,10 @@ sp_cf_gen(ConfigArgs *c)
|
|||
break;
|
||||
case SP_USEHINT:
|
||||
si->si_usehint = c->value_int;
|
||||
rc = syncprov_setup_accesslog();
|
||||
if ( si->si_usehint ) {
|
||||
/* Consider we might be a delta provider, but it's ok if not */
|
||||
(void)syncprov_setup_accesslog();
|
||||
}
|
||||
break;
|
||||
case SP_LOGDB:
|
||||
if ( si->si_logs ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue