/* config.c - bdb backend configuration file routine */
/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "back-bdb.h"
#define SLAP_BDB_ALLOW_DBNOTXN
+#ifdef DB_DIRTY_READ
+# define SLAP_BDB_ALLOW_DIRTY_READ
+#endif
int
bdb_db_config(
/* turn off transactions, use CDB mode instead */
} else if ( strcasecmp( argv[0], "dbnotxn" ) == 0 ) {
bdb->bi_txn = 0;
+#endif
+#ifdef SLAP_BDB_ALLOW_DIRTY_READ
+ } else if ( strcasecmp( argv[0], "dirtyread" ) == 0 ) {
+ bdb->bi_db_opflags |= DB_DIRTY_READ;
#endif
/* transaction checkpoint configuration */
} else if ( strcasecmp( argv[0], "dbnosync" ) == 0 ) {
} else if( strcasecmp( argv[1], "youngest" ) == 0 ) {
bdb->bi_lock_detect = DB_LOCK_YOUNGEST;
+ } else if( strcasecmp( argv[1], "fewest" ) == 0 ) {
+ bdb->bi_lock_detect = DB_LOCK_MINLOCKS;
+
} else {
fprintf( stderr, "%s: line %d: "
"bad policy (%s) in \"lockDetect <policy> <seconds>\" line\n",