]> git.sur5r.net Git - openldap/commitdiff
Use unique IDs for fake syncrepl connections
authorHoward Chu <hyc@openldap.org>
Sat, 21 Nov 2009 06:54:58 +0000 (06:54 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 21 Nov 2009 06:54:58 +0000 (06:54 +0000)
servers/slapd/syncrepl.c

index aadf33b79c23035ad12ea9afe05a4bed57e64bf1..eada1d56db8b9767eaaa6ed368f2c529bba6ef6c 100644 (file)
@@ -1353,6 +1353,8 @@ do_syncrepl(
 
        connection_fake_init( &conn, &opbuf, ctx );
        op = &opbuf.ob_op;
+       /* o_connids must be unique for slap_graduate_commit_csn */
+       op->o_connid = -1000 - si->si_rid;
 
        op->o_managedsait = SLAP_CONTROL_NONCRITICAL;
        be = si->si_be;