diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-06-06 07:46:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:10 -0500 |
commit | cc2b76b644d41cca71b9d7b1845faf01cf86a96a (patch) | |
tree | edb08d9c423c123593159b178d11234f96aae6f4 | |
parent | 86d628147cff14771d1c398c8038bccfd8c6ad6e (diff) | |
download | samba-cc2b76b644d41cca71b9d7b1845faf01cf86a96a.tar.gz samba-cc2b76b644d41cca71b9d7b1845faf01cf86a96a.tar.bz2 samba-cc2b76b644d41cca71b9d7b1845faf01cf86a96a.zip |
r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to merge
this in your tree.
(This used to be commit c0f40eb5846f617d9c421136b0e1ea593c8d8458)
-rw-r--r-- | source3/lib/util_tdb.c | 3 |
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) { /* |