]> git.sur5r.net Git - openldap/commitdiff
ITS#5268 omit contextCSN when replicating
authorHoward Chu <hyc@openldap.org>
Sat, 8 Dec 2007 17:45:10 +0000 (17:45 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 8 Dec 2007 17:45:10 +0000 (17:45 +0000)
servers/slapd/overlays/syncprov.c

index 0a443bd9a16c1411a86c6dae98265e01bbcacd57..45ae81a7f913448aaf498ea61d3689fe7c47b81a 100644 (file)
@@ -2321,6 +2321,12 @@ syncprov_operational(
        slap_overinst           *on = (slap_overinst *)op->o_bd->bd_info;
        syncprov_info_t         *si = (syncprov_info_t *)on->on_bi.bi_private;
 
+       /* This prevents generating unnecessarily; frontend will strip
+        * any statically stored copy.
+        */
+       if ( op->o_sync != SLAP_CONTROL_NONE )
+               return SLAP_CB_CONTINUE;
+
        if ( rs->sr_entry &&
                dn_match( &rs->sr_entry->e_nname, op->o_bd->be_nsuffix )) {