From: Howard Chu Date: Wed, 13 Feb 2008 04:36:58 +0000 (+0000) Subject: ITS#5376 - deltasync must fallback for missing entries X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~151 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=947e3bbe1d6c42abf25381f981eb62d79189c93c;p=openldap ITS#5376 - deltasync must fallback for missing entries --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 1b008233b7..3928454aa1 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -833,6 +833,9 @@ do_syncrep2( syncCookie.ctxcsn ) { rc = syncrepl_updateCookie( si, op, psub, &syncCookie ); + } else if ( rc == LDAP_NO_SUCH_OBJECT ) { + rc = LDAP_SYNC_REFRESH_REQUIRED; + si->si_logstate = SYNCLOG_FALLBACK; } } else if ( ( rc = syncrepl_message_to_entry( si, op, msg, &modlist, &entry, syncstate ) ) == LDAP_SUCCESS )