]> git.sur5r.net Git - openldap/commitdiff
ITS#4622 if any present list was sent, must send refreshPresent
authorHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 12:37:59 +0000 (12:37 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 12:37:59 +0000 (12:37 +0000)
servers/slapd/overlays/syncprov.c

index fe5a96221e7be11881a7f5028337557621c0a167..02ea4851cf0b8c3f1b2bbd5b6f6af37764d032b0 100644 (file)
@@ -1884,7 +1884,7 @@ syncprov_search_response( Operation *op, SlapReply *rs )
                        op->o_tmpfree( cookie.bv_val, op->o_tmpmemctx );
                } else {
                /* It's RefreshAndPersist, transition to Persist phase */
-                       syncprov_sendinfo( op, rs, ( ss->ss_present && rs->sr_nentries ) ?
+                       syncprov_sendinfo( op, rs, ss->ss_present ?
                                LDAP_TAG_SYNC_REFRESH_PRESENT : LDAP_TAG_SYNC_REFRESH_DELETE,
                                &cookie, 1, NULL, 0 );
                        op->o_tmpfree( cookie.bv_val, op->o_tmpmemctx );