From 6d58126c3403c8624da1a5265c070c77f83b7478 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Jan 2002 13:27:25 +0000 Subject: [PATCH] Added compatibility macros for BDB3/4 lock_get, txn_id. --- servers/slapd/back-bdb/back-bdb.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/back-bdb/back-bdb.h b/servers/slapd/back-bdb/back-bdb.h index 49eaece263..3ef79b4437 100644 --- a/servers/slapd/back-bdb/back-bdb.h +++ b/servers/slapd/back-bdb/back-bdb.h @@ -135,10 +135,14 @@ struct bdb_op_info { #if DB_VERSION_MAJOR < 4 #define TXN_CHECKPOINT(env, k, m, f) txn_checkpoint(env, k, m, f) +#define TXN_ID(txn) txn_id(txn) #define LOCK_DETECT(env, f, t, a) lock_detect(env, f, t, a) +#define LOCK_GET(env, i, f, o, m, l) lock_get(env, i, f, o, m, l) #else #define TXN_CHECKPOINT(env, k, m, f) (env)->txn_checkpoint(env, k, m, f) +#define TXN_ID(txn) (txn)->id(txn) #define LOCK_DETECT(env, f, t, a) (env)->lock_detect(env, f, t, a) +#define LOCK_GET(env, i, f, o, m, l) (env)->lock_get(env, i, f, o, m, l) #endif LDAP_END_DECL -- 2.39.5