From: Howard Chu Date: Sat, 21 Nov 2009 20:22:18 +0000 (+0000) Subject: ITS#6393 syncrepl internal connids are now <= -1000 X-Git-Tag: ACLCHECK_0~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4105ee462dac31f490b383d6c35e2f1bb0a1bccf;p=openldap ITS#6393 syncrepl internal connids are now <= -1000 --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index ed39545735..b003354219 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -759,10 +759,10 @@ be_slurp_update( Operation *op ) int be_shadow_update( Operation *op ) { - /* This assumes that all internal ops (connid == -1) on a syncrepl + /* This assumes that all internal ops (connid <= -1000) on a syncrepl * database are syncrepl operations. */ - return (( SLAP_SYNC_SHADOW( op->o_bd ) && op->o_connid == -1 ) || + return (( SLAP_SYNC_SHADOW( op->o_bd ) && op->o_connid <= -1000 ) || ( SLAP_SHADOW( op->o_bd ) && be_isupdate_dn( op->o_bd, &op->o_ndn ) ) ); }