Lines Matching refs:op
32 Operation *op,
43 ai = bdb_index_mask( op->o_bd, desc, &ix_at );
54 ai = bdb_index_mask( op->o_bd, ap->a_desc, &ix2 );
69 Operation *op,
88 if ( !acl_check_modlist( op, e, modlist )) {
137 err = modify_add_values( e, mod, get_permissiveModify(op),
154 err = modify_delete_values( e, mod, get_permissiveModify(op),
168 err = modify_replace_values( e, mod, get_permissiveModify(op),
182 err = modify_increment_values( e, mod, get_permissiveModify(op),
202 err = modify_add_values( e, mod, get_permissiveModify(op),
226 err = modify_delete_values( e, mod, get_permissiveModify(op),
256 err = modify_add_values( e, mod, get_permissiveModify(op),
268 Debug(LDAP_DEBUG_ANY, "bdb_modify_internal: invalid op %d\n",
293 if ( !op->o_noop ) {
294 bdb_modify_idxflags( op, mod->sm_desc, got_delete, e->e_attrs, save_attrs );
300 rc = entry_schema_check( op, e, save_attrs, get_relax(op), 0, &ap,
302 if ( rc != LDAP_SUCCESS || op->o_noop ) {
323 if ( !op->o_noop ) {
324 bdb_modify_idxflags( op, slap_schema.si_ad_structuralObjectClass,
341 vals = op->o_tmpalloc( (ap->a_numvals + 1) *
342 sizeof(struct berval), op->o_tmpmemctx );
346 &ap->a_nvals[i], NULL, op->o_tmpmemctx );
358 rc = bdb_index_values( op, tid, ap->a_desc,
363 op->o_log_prefix, ap->a_desc->ad_cname.bv_val, 0 );
369 op->o_tmpfree( vals, op->o_tmpmemctx );
378 rc = bdb_index_values( op, tid, ap->a_desc,
384 op->o_log_prefix, ap->a_desc->ad_cname.bv_val, 0 );
397 bdb_modify( Operation *op, SlapReply *rs )
399 struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
402 int manageDSAit = get_manageDSAit( op );
425 op->o_req_dn.bv_val, 0, 0 );
428 if( op->o_txnSpec ) {
430 ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
431 if( op->o_conn->c_txn == CONN_TXN_INACTIVE ) {
435 } else if( op->o_conn->c_txn == CONN_TXN_SETTLE ) {
440 if( op->o_conn->c_txn_backend == NULL ) {
441 op->o_conn->c_txn_backend = op->o_bd;
443 } else if( op->o_conn->c_txn_backend != op->o_bd ) {
456 ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
459 send_ldap_result( op, rs );
469 if ( !be_isupdate(op) || !op->orm_modlist || op->orm_modlist->sml_next ||
470 op->orm_modlist->sml_desc != slap_schema.si_ad_contextCSN ) {
472 slap_mods_opattrs( op, &op->orm_modlist, 1 );
490 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
492 op->o_do_not_cache = opinfo.boi_acl_cache;
498 if ( op->o_abandon ) {
521 opinfo.boi_acl_cache = op->o_do_not_cache;
522 LDAP_SLIST_INSERT_HEAD( &op->o_extra, &opinfo.boi_oe, oe_next );
525 rs->sr_err = bdb_dn2entry( op, ltid, &op->o_req_ndn, &ei, 1,
558 ? get_entry_referrals( op, e )
565 &op->o_req_dn, LDAP_SCOPE_DEFAULT );
569 send_ldap_result( op, rs );
583 rs->sr_ref = get_entry_referrals( op, e );
591 send_ldap_result( op, rs );
599 if ( get_assert( op ) &&
600 ( test_filter( op, e, get_assertion( op )) != LDAP_COMPARE_TRUE ))
606 if( op->o_preread ) {
611 if ( slap_read_controls( op, rs, e,
617 if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
638 rs->sr_err = bdb_modify_internal( op, lt2, op->orm_modlist,
659 rs->sr_err = bdb_id2entry_update( op->o_bd, lt2, &dummy );
679 if( op->o_postread ) {
684 if( slap_read_controls( op, rs, &dummy,
690 if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
698 if( op->o_noop ) {
700 rs->sr_text = "txn_abort (no-op) failed";
722 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
728 op->o_noop ? "abort (no-op)" : "commit",
738 op->o_noop ? " (no-op)" : "",
739 dummy.e_id, op->o_req_dn.bv_val );
749 send_ldap_result( op, rs );
757 slap_graduate_commit_csn( op );
763 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
771 slap_sl_free( (*preread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
772 slap_sl_free( *preread_ctrl, op->o_tmpmemctx );
775 slap_sl_free( (*postread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
776 slap_sl_free( *postread_ctrl, op->o_tmpmemctx );