From 07f123b6c8292b3a7ae8a1a55c2ad56bd424c263 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Sep 2005 04:57:35 +0000 Subject: r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no" (This used to be commit 435cbcf78b70a82c2ec89fab21e4ff8af538f2f1) --- source4/lib/db_wrap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/lib/db_wrap.c') 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) { -- cgit