From: Howard Chu Date: Sat, 13 Nov 2004 13:23:33 +0000 (+0000) Subject: fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~326 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3cfbe2ec298aac785021ca71f23696e8978ffccf;p=openldap fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE --- 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 ) {