From 6c0b815b6fa8996e5f685a744db67a7aab96017b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 8 Dec 2007 17:45:10 +0000 Subject: [PATCH] ITS#5268 omit contextCSN when replicating --- servers/slapd/overlays/syncprov.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 )) { -- 2.39.5