diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-06-06 13:02:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:10 -0500 |
commit | 422722aad2e50465627a2f7b249c251652297a7b (patch) | |
tree | fb55c0fb04b631171ee02ddf8827e5b51d705ed1 /source3/groupdb | |
parent | c9e21d8770a6bff73cbb2554b4192cbe0a289893 (diff) | |
download | samba-422722aad2e50465627a2f7b249c251652297a7b.tar.gz samba-422722aad2e50465627a2f7b249c251652297a7b.tar.bz2 samba-422722aad2e50465627a2f7b249c251652297a7b.zip |
r23367: check the "use mmap" option for ldb too
(This used to be commit 15345bbc73b28d07c069fde33d3d4c1f21f107d3)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_ldb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index 8eafc2532b..4f3aa18534 100644 --- a/source3/groupdb/mapping_ldb.c +++ b/source3/groupdb/mapping_ldb.c @@ -67,6 +67,10 @@ static BOOL init_group_mapping(void) flags |= LDB_FLG_NOSYNC; } + if (!lp_use_mmap()) { + flags |= LDB_FLG_NOMMAP; + } + ret = ldb_connect(ldb, db_path, flags, NULL); if (ret != LDB_SUCCESS) { goto failed; |