mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#9015 Don't generate contextCSN on empty DB
This commit is contained in:
parent
1df2b85c32
commit
abcf0e8f23
@ -3216,6 +3216,11 @@ syncprov_db_open(
|
|||||||
/* Not in charge of this serverID, don't generate anything. */
|
/* Not in charge of this serverID, don't generate anything. */
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if ( !SLAP_SYNC_SUBENTRY( be ) && rc != LDAP_SUCCESS
|
||||||
|
&& rc != LDAP_NO_SUCH_ATTRIBUTE ) {
|
||||||
|
/* If the DB is genuinely empty, don't generate one either. */
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
csn.bv_val = csnbuf;
|
csn.bv_val = csnbuf;
|
||||||
csn.bv_len = sizeof( csnbuf );
|
csn.bv_len = sizeof( csnbuf );
|
||||||
slap_get_csn( op, &csn, 0 );
|
slap_get_csn( op, &csn, 0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user