mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#9534 fix delta-sync startup
When transitioning from plain refresh to delta mode, don't
wait for a reschedule, go immediately.
Partially reverts f2740c79b3
This commit is contained in:
parent
9624bb5af0
commit
8a72584bd1
@ -2027,6 +2027,7 @@ do_syncrepl(
|
||||
if ( !si->si_schemachecking )
|
||||
op->o_no_schema_check = 1;
|
||||
|
||||
reload:
|
||||
/* Establish session, do search */
|
||||
if ( !si->si_ld ) {
|
||||
si->si_refreshDelete = 0;
|
||||
@ -2065,6 +2066,8 @@ do_syncrepl(
|
||||
op->o_ndn = op->o_bd->be_rootndn;
|
||||
rc = do_syncrep2( op, si );
|
||||
if ( rc == LDAP_SYNC_REFRESH_REQUIRED ) {
|
||||
if ( si->si_logstate == SYNCLOG_LOGGING )
|
||||
goto reload;
|
||||
/* give up but schedule an immedite retry */
|
||||
rc = SYNC_PAUSED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user