Lines Matching refs:op
26 bdb_delete( Operation *op, SlapReply *rs )
28 struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
34 int manageDSAit = get_manageDSAit( op );
59 op->o_req_dn.bv_val, 0, 0 );
62 if( op->o_txnSpec ) {
64 ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
65 if( op->o_conn->c_txn == CONN_TXN_INACTIVE ) {
69 } else if( op->o_conn->c_txn == CONN_TXN_SETTLE ) {
74 if( op->o_conn->c_txn_backend == NULL ) {
75 op->o_conn->c_txn_backend = op->o_bd;
77 } else if( op->o_conn->c_txn_backend != op->o_bd ) {
90 ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
93 send_ldap_result( op, rs );
102 if ( BER_BVISNULL( &op->o_csn ) ) {
108 slap_get_csn( op, &csn, 1 );
126 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
128 op->o_do_not_cache = opinfo.boi_acl_cache;
134 if ( op->o_abandon ) {
159 opinfo.boi_acl_cache = op->o_do_not_cache;
160 LDAP_SLIST_INSERT_HEAD( &op->o_extra, &opinfo.boi_oe, oe_next );
162 if ( !be_issuffix( op->o_bd, &op->o_req_ndn ) ) {
163 dnParent( &op->o_req_ndn, &pdn );
167 rs->sr_err = bdb_dn2entry( op, ltid, &op->o_req_ndn, &ei, 1,
197 op->o_req_dn.bv_val, 0, 0);
202 ? get_entry_referrals( op, matched )
209 &op->o_req_dn, LDAP_SCOPE_DEFAULT );
217 rc = bdb_cache_find_id( op, ltid, eip->bei_id, &eip, 0, &plock );
243 rs->sr_err = access_allowed( op, p,
263 if( ! be_isroot( op ) ) {
264 if ( be_issuffix( op->o_bd, (struct berval *)&slap_empty_bv )
265 || be_shadow_update( op ) ) {
269 rs->sr_err = access_allowed( op, p,
300 if ( get_assert( op ) &&
301 ( test_filter( op, e, get_assertion( op )) != LDAP_COMPARE_TRUE ))
307 rs->sr_err = access_allowed( op, e,
327 rs->sr_ref = get_entry_referrals( op, e );
340 if( op->o_preread ) {
345 if( slap_read_controls( op, rs, e,
351 if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
376 rs->sr_err = bdb_cache_children( op, lt2, e );
386 op->o_req_dn.bv_val, 0, 0);
402 rs->sr_err = bdb_dn2id_delete( op, lt2, eip, e );
418 rs->sr_err = bdb_index_entry_del( op, lt2, e );
434 if ( !SLAP_SHADOW( op->o_bd )) {
437 assert( !BER_BVISNULL( &op->o_csn ) );
438 vals[0] = op->o_csn;
440 rs->sr_err = bdb_index_values( op, lt2, slap_schema.si_ad_entryCSN,
455 rs->sr_err = bdb_id2entry_delete( op->o_bd, lt2, e );
472 rs->sr_err = bdb_cache_children( op, lt2, p );
509 bdb_last_id( op->o_bd, ltid );
514 if( op->o_noop ) {
516 rs->sr_text = "txn_abort (no-op) failed";
537 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
546 op->o_noop ? "abort (no-op)" : "commit",
556 op->o_noop ? " (no-op)" : "",
557 eid, op->o_req_dn.bv_val );
564 op->o_delete_glue_parent = 1;
585 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
588 send_ldap_result( op, rs );
589 slap_graduate_commit_csn( op );
592 slap_sl_free( (*preread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
593 slap_sl_free( *preread_ctrl, op->o_tmpmemctx );