mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
More for ITS#6608 - don't replicate ppolicy state changes on replicas
This commit is contained in:
parent
b0ccdd79fc
commit
21d299e370
2 changed files with 6 additions and 2 deletions
|
|
@ -1388,6 +1388,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
|
|||
}
|
||||
}
|
||||
ldap_pvt_thread_rmutex_unlock( &li->li_op_rmutex, op->o_tid );
|
||||
if ( op->o_dont_replicate && op->orm_no_opattrs )
|
||||
goto done;
|
||||
}
|
||||
|
||||
if ( li->li_success && rs->sr_err != LDAP_SUCCESS )
|
||||
|
|
|
|||
|
|
@ -1165,9 +1165,11 @@ locked:
|
|||
c.ldctl_iscritical = 1;
|
||||
c.ldctl_oid = LDAP_CONTROL_RELAX;
|
||||
} else {
|
||||
/* If not forwarding, don't update opattrs */
|
||||
if ( SLAP_SINGLE_SHADOW( op->o_bd ))
|
||||
/* If not forwarding, don't update opattrs and don't replicate */
|
||||
if ( SLAP_SINGLE_SHADOW( op->o_bd )) {
|
||||
op2.orm_no_opattrs = 1;
|
||||
op2.o_dont_replicate = 1;
|
||||
}
|
||||
op2.o_bd->bd_info = (BackendInfo *)on->on_info;
|
||||
}
|
||||
rc = op2.o_bd->be_modify( &op2, &r2 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue