mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
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:
parent
a5ad0e0643
commit
1df2b85c32
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user