summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_tdb.c3
1 files changed, 3 insertions, 0 deletions
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) {
/*