]> git.sur5r.net Git - openldap/commitdiff
syncrepl internal connids are now <= -1000
authorQuanah Gibson-Mount <quanah@openldap.org>
Sat, 21 Nov 2009 21:10:32 +0000 (21:10 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 21 Nov 2009 21:10:32 +0000 (21:10 +0000)
servers/slapd/backend.c

index ed395457350855a149580ea754cc50403ddf26c5..b003354219566b2c49ee8321537d4f698eef2960 100644 (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 ) ) );
 }