From: Howard Chu Date: Wed, 28 Jul 2010 02:21:27 +0000 (+0000) Subject: ITS#6606 send error if consumer is newer than provider X-Git-Tag: MIGRATION_CVS2GIT~539 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e7f24f13f863f74a8ad3d22a0eb9bb05a6cdda6;p=openldap ITS#6606 send error if consumer is newer than provider --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 630a789008..333270e617 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2484,8 +2484,9 @@ syncprov_op_search( Operation *op, SlapReply *rs ) if ( newer < 0 ) changed = SS_CHANGED; else if ( newer > 0 ) { - /* our state is older, tell consumer nothing */ - rs->sr_err = LDAP_SUCCESS; + /* our state is older, complain to consumer */ + rs->sr_err = LDAP_UNWILLING_TO_PERFORM; + rs->sr_text = "consumer state is newer than provider!"; bailout: if ( sop ) { syncops **sp = &si->si_ops;