send_ldap_result( conn, op, LDAP_SUCCESS,
NULL, NULL, NULL, NULL );
- bdb2i_cache_return_entry_w( &li->li_cache, e );
return( 0 );
error_return:;
- bdb2i_cache_return_entry_w( &li->li_cache, e );
return( -1 );
}
}
ret = bdb2i_back_modify_internal( be, conn, op, dn, modlist, e );
+ bdb2i_cache_return_entry_w( &li->li_cache, e );
done:
(void) bdb2i_leave_backend_w( lock );
return_results:
if( new_dn != NULL ) free( new_dn );
if( new_ndn != NULL ) free( new_ndn );
+
return_results_after:
/* NOTE:
* new_dn and new_ndn are not deallocated because they are used by
--- /dev/null
+#
+# slave slapd config -- for default referral testing
+#
+include ./data/slapd.at.conf
+include ./data/slapd.oc.conf
+schemacheck off
+pidfile ./test-repl/slapd.pid
+argsfile ./test-repl/slapd.args
+
+#######################################################################
+# ldbm database definitions
+#######################################################################
+
+referral "ldap://localhost:9009/"
+
+backend bdb2
+home ./test-db
+
+database bdb2
+cachesize 0
+suffix "o=University of Mich, c=US"
+directory ./test-repl
+rootdn "cn=Manager, o=University of Mich, c=US"
+rootpw secret
+index cn,sn,uid pres,eq,approx
+index default none
+# index default pres,eq,approx
+lastmod on
ACLCONF=$DATADIR/slapd-bdb2-acl.conf
MASTERCONF=$DATADIR/slapd-bdb2-repl-master.conf
SLAVECONF=$DATADIR/slapd-bdb2-repl-slave.conf
+ REFSLAVECONF=$DATADIR/slapd-bdb2-ref-slave.conf
TIMING="-t"
else
LDIF2LDBM=../servers/slapd/tools/ldif2ldbm