Add #define SLAP_BDB_ALLOW_DBNOTXN to control dbnotxn keyword

This commit is contained in:
Howard Chu 2001-11-27 04:35:58 +00:00
parent b45fb4f5c5
commit 91f47e0ee6

View File

@ -12,6 +12,8 @@
#include "back-bdb.h"
#define SLAP_BDB_ALLOW_DBNOTXN
int
bdb_db_config(
BackendDB *be,
@ -42,10 +44,11 @@ bdb_db_config(
}
bdb->bi_dbenv_home = ch_strdup( argv[1] );
#ifdef SLAP_BDB_ALLOW_DBNOTXN
/* turn off transactions, use CDB mode instead */
} else if ( strcasecmp( argv[0], "dbnotxn" ) == 0 ) {
bdb->bi_txn = 0;
#endif
/* transaction checkpoint configuration */
} else if ( strcasecmp( argv[0], "dbnosync" ) == 0 ) {
bdb->bi_dbenv_xflags |= DB_TXN_NOSYNC;