From cc2b76b644d41cca71b9d7b1845faf01cf86a96a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 6 Jun 2007 07:46:38 +0000 Subject: r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge this in your tree. (This used to be commit c0f40eb5846f617d9c421136b0e1ea593c8d8458) --- source3/lib/util_tdb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index d6f110e458..4e0d16c354 100644 --- a/source3/lib/util_tdb.c +++ b/source3/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) { /* -- cgit