mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
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.
This commit is contained in:
parent
cc2834c87a
commit
f2740c79b3
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue