Lines Matching refs:op
25 bdb_add(Operation *op, SlapReply *rs )
27 struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
29 Entry *p = NULL, *oe = op->ora_e;
53 op->ora_e->e_name.bv_val, 0, 0);
56 if( op->o_txnSpec ) {
58 ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
59 if( op->o_conn->c_txn == CONN_TXN_INACTIVE ) {
63 } else if( op->o_conn->c_txn == CONN_TXN_SETTLE ) {
68 if( op->o_conn->c_txn_backend == NULL ) {
69 op->o_conn->c_txn_backend = op->o_bd;
71 } else if( op->o_conn->c_txn_backend != op->o_bd ) {
84 ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
87 send_ldap_result( op, rs );
96 rs->sr_err = entry_schema_check( op, op->ora_e, NULL,
97 get_relax(op), 1, NULL, &rs->sr_text, textbuf, textlen );
107 rs->sr_err = slap_add_opattrs( op, &rs->sr_text, textbuf, textlen, 1 );
110 LDAP_XSTRING(bdb_add) ": entry failed op attrs add: "
115 if ( get_assert( op ) &&
116 ( test_filter( op, op->ora_e, get_assertion( op )) != LDAP_COMPARE_TRUE ))
122 subentry = is_entry_subentry( op->ora_e );
135 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
137 op->o_do_not_cache = opinfo.boi_acl_cache;
143 if ( op->o_abandon ) {
166 opinfo.boi_acl_cache = op->o_do_not_cache;
167 LDAP_SLIST_INSERT_HEAD( &op->o_extra, &opinfo.boi_oe, oe_next );
172 if ( be_issuffix( op->o_bd, &op->ora_e->e_nname ) ) {
175 dnParent( &op->ora_e->e_nname, &pdn );
179 rs->sr_err = bdb_dn2entry( op, ltid, &op->ora_e->e_nname, &ei,
205 op->o_tmpmemctx );
207 ? get_entry_referrals( op, p )
221 rs->sr_err = access_allowed( op, p,
271 op->o_tmpmemctx );
272 rs->sr_ref = get_entry_referrals( op, p );
297 dnParent( &op->ora_e->e_name, &ppdn );
302 dnRdn( &op->ora_e->e_name, &rdn );
305 if ( op->ora_e->e_name.bv_val != op->o_req_dn.bv_val )
306 ber_memfree( op->ora_e->e_name.bv_val );
307 op->ora_e->e_name = newdn;
318 rs->sr_err = access_allowed( op, op->ora_e,
339 if (!acl_check_modlist(op, oe, op->ora_modlist)) {
355 rs->sr_err = bdb_next_id( op->o_bd, &eid );
364 op->ora_e->e_id = eid;
381 rs->sr_err = bdb_dn2id_add( op, lt2, ei, op->ora_e );
401 rs->sr_err = bdb_index_entry_add( op, lt2, op->ora_e );
418 rs->sr_err = bdb_id2entry_add( op->o_bd, lt2, op->ora_e );
441 if( op->o_postread ) {
446 if ( slap_read_controls( op, rs, op->ora_e,
452 if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
460 if ( op->o_noop ) {
462 rs->sr_text = "txn_abort (no-op) failed";
474 nrdn.bv_val = op->ora_e->e_nname.bv_val;
475 nrdn.bv_len = pdn.bv_val - op->ora_e->e_nname.bv_val - 1;
477 nrdn = op->ora_e->e_nname;
480 bdb_cache_add( bdb, ei, op->ora_e, &nrdn, ltid, &lock );
490 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
503 op->o_noop ? " (no-op)" : "",
504 op->ora_e->e_id, op->ora_e->e_dn );
511 send_ldap_result( op, rs );
517 LDAP_SLIST_REMOVE( &op->o_extra, &opinfo.boi_oe, OpExtra, oe_next );
527 if ( op->ora_e == oe )
528 op->ora_e = NULL;
536 slap_graduate_commit_csn( op );
539 slap_sl_free( (*postread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx );
540 slap_sl_free( *postread_ctrl, op->o_tmpmemctx );