From 7e7f24f13f863f74a8ad3d22a0eb9bb05a6cdda6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 28 Jul 2010 02:21:27 +0000 Subject: [PATCH] ITS#6606 send error if consumer is newer than provider --- servers/slapd/overlays/syncprov.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5