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