]> git.sur5r.net Git - openldap/commitdiff
fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE
authorHoward Chu <hyc@openldap.org>
Sat, 13 Nov 2004 13:23:33 +0000 (13:23 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 13 Nov 2004 13:23:33 +0000 (13:23 +0000)
servers/slapd/back-bdb/config.c

index 1c346e38b64005a0d2242ffa55f87b8a4a4fe75f..6c63069d608689a58103adbe1e42399a39728ae7 100644 (file)
@@ -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 ) {