]> git.sur5r.net Git - openldap/commitdiff
ITS#7426 ignore syncrepl ops
authorHoward Chu <hyc@openldap.org>
Fri, 2 Nov 2012 00:56:52 +0000 (17:56 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 5 Nov 2012 17:40:14 +0000 (09:40 -0800)
servers/slapd/overlays/constraint.c

index 897ad3c720c56f9bfd2315d1a2185ed94fd609cf..ee8911bd4071d025673a187fc0171dae00b979d2 100644 (file)
@@ -771,7 +771,7 @@ constraint_add( Operation *op, SlapReply *rs )
        int rc;
        char *msg = NULL;
 
-       if (get_relax(op)) {
+       if (get_relax(op) || SLAPD_SYNC_IS_SYNCCONN( op->o_connid )) {
                return SLAP_CB_CONTINUE;
        }
 
@@ -903,7 +903,7 @@ constraint_update( Operation *op, SlapReply *rs )
        char *msg = NULL;
        int is_v;
 
-       if (get_relax(op)) {
+       if (get_relax(op) || SLAPD_SYNC_IS_SYNCCONN( op->o_connid )) {
                return SLAP_CB_CONTINUE;
        }