From: Volker Lendecke Date: Wed, 6 Jun 2007 07:46:38 +0000 (+0000) Subject: r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0f40eb5846f617d9c421136b0e1ea593c8d8458;p=thirdparty%2Fsamba.git r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge this in your tree. --- diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index d6f110e4581..4e0d16c3543 100644 --- a/source/lib/util_tdb.c +++ b/source/lib/util_tdb.c @@ -906,6 +906,9 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx, struct tdb_logging_context log_ctx; log_ctx.log_fn = tdb_wrap_log; + if (!lp_use_mmap()) + tdb_flags |= TDB_NOMMAP; + for (w=tdb_list;w;w=w->next) { if (strcmp(name, w->name) == 0) { /*