More for ITS#6608 - don't replicate ppolicy state changes on replicas

This commit is contained in:
Howard Chu 2010-08-04 08:14:59 +00:00
parent b0ccdd79fc
commit 21d299e370
2 changed files with 6 additions and 2 deletions

View file

@ -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 )

View file

@ -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 );