mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05: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
1 changed files with 2 additions and 5 deletions
|
|
@ -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 a new issue