mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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"
|
#include "back-bdb.h"
|
||||||
|
|
||||||
|
#define SLAP_BDB_ALLOW_DBNOTXN
|
||||||
|
|
||||||
int
|
int
|
||||||
bdb_db_config(
|
bdb_db_config(
|
||||||
BackendDB *be,
|
BackendDB *be,
|
||||||
@ -42,10 +44,11 @@ bdb_db_config(
|
|||||||
}
|
}
|
||||||
bdb->bi_dbenv_home = ch_strdup( argv[1] );
|
bdb->bi_dbenv_home = ch_strdup( argv[1] );
|
||||||
|
|
||||||
|
#ifdef SLAP_BDB_ALLOW_DBNOTXN
|
||||||
/* turn off transactions, use CDB mode instead */
|
/* turn off transactions, use CDB mode instead */
|
||||||
} else if ( strcasecmp( argv[0], "dbnotxn" ) == 0 ) {
|
} else if ( strcasecmp( argv[0], "dbnotxn" ) == 0 ) {
|
||||||
bdb->bi_txn = 0;
|
bdb->bi_txn = 0;
|
||||||
|
#endif
|
||||||
/* transaction checkpoint configuration */
|
/* transaction checkpoint configuration */
|
||||||
} else if ( strcasecmp( argv[0], "dbnosync" ) == 0 ) {
|
} else if ( strcasecmp( argv[0], "dbnosync" ) == 0 ) {
|
||||||
bdb->bi_dbenv_xflags |= DB_TXN_NOSYNC;
|
bdb->bi_dbenv_xflags |= DB_TXN_NOSYNC;
|
||||||
|
Loading…
Reference in New Issue
Block a user