}
}
-func_leave:
op->o_tmpfree( d, op->o_tmpmemctx );
Debug( LDAP_DEBUG_TRACE, "<= hdb_dn2id_add 0x%lx: %d\n", e->e_id, rc, 0 );
Entry* bdb_tool_entry_get( BackendDB *be, ID id )
{
- struct bdb_info *bdb = (struct bdb_info *) be->be_private;
Entry *e = NULL;
char *dptr;
int rc, eoff;
e->e_id = id;
#ifdef BDB_HIER
if ( slapMode & SLAP_TOOL_READONLY ) {
+ struct bdb_info *bdb = (struct bdb_info *) be->be_private;
EntryInfo *ei = NULL;
Operation op = {0};
Opheader ohdr = {0};
if ( rc != 0 ) {
/* ignore by now */
rc = 0;
-#if 0
- goto fail;
-#endif
}
li->li_flags |= LDAP_BACK_F_ISOPEN;
-fail:;
return rc;
}
overlay_remove( BackendDB *be, slap_overinst *on )
{
slap_overinfo *oi = on->on_info;
- slap_overinst **oidx, *on2;
+ slap_overinst **oidx;
/* remove overlay from oi_list an call db_close and db_destroy
* handlers */
CfBackInfo *cfb;
CfEntryInfo *ce, *last, *ce2;
- slap_mask_t mask;
-
cfb = (CfBackInfo *)op->o_bd->be_private;
ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
} else if ( ce->ce_type == Cft_Overlay || ce->ce_type == Cft_Database ){
char *iptr;
- int count, ixold, rc;
+ int count, ixold;
ldap_pvt_thread_pool_pause( &connection_pool );
#include "slap.h"
#include "config.h"
+#include "lutil.h"
+
/* This is a cheap hack to implement a collective attribute.
*
* This demonstration overlay looks for a specified attribute in an
collect_info *ci = on->on_bi.bi_private;
Modifications *ml;
char errMsg[100];
- int rc, idx;
+ int idx;
for ( ml = op->orm_modlist; ml != NULL; ml = ml->sml_next) {
for (; ci; ci=ci->ci_next ) {
constraint_add( Operation *op, SlapReply *rs )
{
slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
- Backend *be = op->o_bd;
Attribute *a;
constraint *c = on->on_bi.bi_private, *cp;
BerVarray b = NULL;
static int
syncprov_findbase( Operation *op, fbase_cookie *fc )
{
- opcookie *opc = op->o_callback->sc_private;
- slap_overinst *on = opc->son;
-
/* Use basic parameters from syncrepl search, but use
* current op's threadctx / tmpmemctx
*/