]> git.sur5r.net Git - openldap/commitdiff
ITS#5376 - deltasync must fallback for missing entries
authorHoward Chu <hyc@openldap.org>
Wed, 13 Feb 2008 04:36:58 +0000 (04:36 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 13 Feb 2008 04:36:58 +0000 (04:36 +0000)
servers/slapd/syncrepl.c

index 1b008233b7c1f92ce6896dc1d0fbe9b2481594cb..3928454aa17898ab14ead83a184ec4283161974f 100644 (file)
@@ -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 )