ITS#9015 Generate contextCSN unless we're a pure replica.

Essentially reverts part of cd8ff37629 to
make sure there is always a contextCSN if the server is in charge of its
own serverID.
This commit is contained in:
Ondřej Kuzník 2019-04-26 10:28:21 +01:00
parent a5ad0e0643
commit 1df2b85c32

View 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;