summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-01-23 07:18:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-01-23 04:57:44 -0800
commit3a822f390e63a6fe847eb5a4ead03c0aaf32cb3e (patch)
treea669068e8c93d4a732c34f11aba0b7c47f3ce3c3
parent7788f8b76c082f22f10b5367e26d5cde25c949de (diff)
bdb: fix build issue. Thanks to Patrick Matthaei <pmatthaei@debian.org>
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 544 (Fails to build with libdb 4.8) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=544
-rw-r--r--xlators/storage/bdb/src/bdb-ll.c5
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 290b297..d247db0 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 {