Commit f2740c79 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8589 syncrepl: defer on REFRESH_REQUIRED

Schedule a new retry instead of immediate looping back. This
will also prevent locking up cn=config replication.
parent cc2834c8
Pipeline #2157 passed with stage
in 46 minutes and 14 seconds
......@@ -2027,7 +2027,6 @@ 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;
......@@ -2066,7 +2065,8 @@ reload:
op->o_ndn = op->o_bd->be_rootndn;
rc = do_syncrep2( op, si );
if ( rc == LDAP_SYNC_REFRESH_REQUIRED ) {
goto reload;
/* give up but schedule an immedite retry */
rc = SYNC_PAUSED;
}
deleted:
......
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