From: Howard Chu Date: Fri, 18 Jan 2002 13:27:25 +0000 (+0000) Subject: Added compatibility macros for BDB3/4 lock_get, txn_id. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d58126c3403c8624da1a5265c070c77f83b7478;p=openldap Added compatibility macros for BDB3/4 lock_get, txn_id. --- 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