ITS#6393 syncrepl internal connids are now <= -1000

This commit is contained in:
Howard Chu 2009-11-21 20:22:18 +00:00
parent 650ebba22b
commit 4105ee462d

View File

@ -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 ) ) );
}