#define _BACK_BDB_H_
#include <portable.h>
-#include <db.h>
-
#include "slap.h"
+#include <db.h>
LDAP_BEGIN_DECL
u_int32_t bi_txn_cp_kbyte;
int bi_lock_detect;
-#ifdef NO_THREADS
- int bi_locker_id;
-#endif
ID bi_lastid;
ldap_pvt_thread_mutex_t bi_lastid_mutex;
+#ifdef LDAP_CLIENT_UPDATE
+ LDAP_LIST_HEAD(pl, slap_op) psearch_list;
+#endif
};
#define bi_id2entry bi_databases[BDB_ID2ENTRY]
#define BDB_REUSE_LOCKERS
#ifdef BDB_REUSE_LOCKERS
-/* Hack - we depend on "op" and "bdb" being the right variable names
- * in each invoker.
- */
#define LOCK_ID_FREE(env, locker)
-#define LOCK_ID(env, locker) bdb_locker_id(op, bdb, locker)
+#define LOCK_ID(env, locker) bdb_locker_id(op, env, locker)
#else
#define LOCK_ID_FREE(env, locker) XLOCK_ID_FREE(env, locker)
#define LOCK_ID(env, locker) XLOCK_ID(env, locker)