From: Howard Chu Date: Tue, 15 Aug 2006 12:37:59 +0000 (+0000) Subject: ITS#4622 if any present list was sent, must send refreshPresent X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44d3972dd7370f3430e4799c8f6eb76d0516c4ae;p=openldap ITS#4622 if any present list was sent, must send refreshPresent --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index fe5a96221e..02ea4851cf 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 );