Commit 8a72584b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9534 fix delta-sync startup

When transitioning from plain refresh to delta mode, don't
wait for a reschedule, go immediately.
Partially reverts f2740c79
parent 9624bb5a
Pipeline #2594 passed with stage
in 54 minutes and 2 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment