r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync...
authorAndrew Tridgell <tridge@samba.org>
Thu, 22 Sep 2005 04:57:35 +0000 (04:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:42 +0000 (13:38 -0500)
(This used to be commit 435cbcf78b70a82c2ec89fab21e4ff8af538f2f1)

source4/lib/db_wrap.c

index ed235761c98cb3f05f9d6b2f4b28d629c40e86bf..482b6f17b53c604a1e9e62529b9c888c3d090051 100644 (file)
@@ -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) {