summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-22 04:57:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:42 -0500
commit07f123b6c8292b3a7ae8a1a55c2ad56bd424c263 (patch)
treea3e1fa170194b88d953ddb6b9ff5ff668909e5fc
parentaf352b4664332416a49569618fb6a2ef4099be04 (diff)
downloadsamba-07f123b6c8292b3a7ae8a1a55c2ad56bd424c263.tar.gz
samba-07f123b6c8292b3a7ae8a1a55c2ad56bd424c263.tar.bz2
samba-07f123b6c8292b3a7ae8a1a55c2ad56bd424c263.zip
r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no"
(This used to be commit 435cbcf78b70a82c2ec89fab21e4ff8af538f2f1)
-rw-r--r--source4/lib/db_wrap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index ed235761c9..482b6f17b5 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -90,6 +90,11 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
talloc_free(ldb);
return NULL;
}
+
+ /* allow admins to force non-sync ldb for all databases */
+ if (lp_parm_bool(-1, "ldb", "nosync", False)) {
+ flags |= LDB_FLG_NOSYNC;
+ }
ret = ldb_connect(ldb, real_url, flags, options);
if (ret == -1) {