From: Howard Chu Date: Sat, 8 Dec 2007 17:45:10 +0000 (+0000) Subject: ITS#5268 omit contextCSN when replicating X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~333 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c0b815b6fa8996e5f685a744db67a7aab96017b;p=openldap ITS#5268 omit contextCSN when replicating --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 0a443bd9a1..45ae81a7f9 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 )) {