From 3cfbe2ec298aac785021ca71f23696e8978ffccf Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 13 Nov 2004 13:23:33 +0000 Subject: [PATCH] fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE --- servers/slapd/back-bdb/config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 1c346e38b6..6c63069d60 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -66,7 +66,11 @@ bdb_db_config( /* slapadd/slapindex logging configuration */ } else if ( strcasecmp( argv[0], "fasttool" ) == 0 ) { if ( slapMode & SLAP_TOOL_MODE ) +#if DB_VERSION_FULL >= 0x04030015 + bdb->bi_dbenv_xflags |= DB_LOG_INMEMORY; +#else bdb->bi_dbenv_xflags |= DB_TXN_NOT_DURABLE; +#endif /* slapindex algorithm tuning */ } else if ( strcasecmp( argv[0], "linearindex" ) == 0 ) { -- 2.39.5