mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Add #define SLAP_BDB_ALLOW_DBNOTXN to control dbnotxn keyword
This commit is contained in:
parent
b45fb4f5c5
commit
91f47e0ee6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user