]> git.sur5r.net Git - openldap/commitdiff
ITS#6606 send error if consumer is newer than provider
authorHoward Chu <hyc@openldap.org>
Wed, 28 Jul 2010 02:21:27 +0000 (02:21 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Jul 2010 02:21:27 +0000 (02:21 +0000)
servers/slapd/overlays/syncprov.c

index 630a789008efe4c0b4ba017c85776f21f58262c6..333270e617302ccaf0c646160644d11c80ad2c4e 100644 (file)
@@ -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;