]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9015 Generate contextCSN unless we're a pure replica.
authorOndřej Kuzník <ondra@openldap.org>
Fri, 26 Apr 2019 09:28:21 +0000 (10:28 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Wed, 8 May 2019 14:42:12 +0000 (15:42 +0100)
Essentially reverts part of cd8ff37629012c1676ef79de164a159da9b2ae89 to
make sure there is always a contextCSN if the server is in charge of its
own serverID.

servers/slapd/overlays/syncprov.c

index b853a9f31a58df3904bd8e32afb673a1b99e2834..d24b18ce9e1b92b6e2b3a53af6889f1c94059ebc 100644 (file)
@@ -3212,11 +3212,8 @@ syncprov_db_open(
                char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
                struct berval csn;
 
-               if ( slap_serverID || SLAP_SYNC_SHADOW( op->o_bd )) {
-               /* If we're also a consumer, then don't generate anything.
-                * Wait for our provider to send it to us, or for a local
-                * modify if we have multimaster.
-                */
+               if ( SLAP_SINGLE_SHADOW( op->o_bd ) ) {
+                       /* Not in charge of this serverID, don't generate anything. */
                        goto out;
                }
                csn.bv_val = csnbuf;