diff options
-rw-r--r-- | xlators/storage/bdb/src/bdb-ll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/storage/bdb/src/bdb-ll.c b/xlators/storage/bdb/src/bdb-ll.c index 290b29710dd..d247db068f8 100644 --- a/xlators/storage/bdb/src/bdb-ll.c +++ b/xlators/storage/bdb/src/bdb-ll.c @@ -954,8 +954,9 @@ bdb_dbenv_init (xlator_t *this, } ret = 0; -#if (DB_VERSION_MAJOR == 4 && \ - DB_VERSION_MINOR == 7) + +#if ((DB_VERSION_MAJOR > 4) || \ + (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 7)) if (private->log_auto_remove) { ret = dbenv->log_set_config (dbenv, DB_LOG_AUTO_REMOVE, 1); } else { |