svn commit: samba r10409 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Thu Sep 22 04:57:36 GMT 2005


Author: tridge
Date: 2005-09-22 04:57:35 +0000 (Thu, 22 Sep 2005)
New Revision: 10409

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10409

Log:

allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no"

Modified:
   branches/SAMBA_4_0/source/lib/db_wrap.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/db_wrap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/db_wrap.c	2005-09-22 04:40:23 UTC (rev 10408)
+++ branches/SAMBA_4_0/source/lib/db_wrap.c	2005-09-22 04:57:35 UTC (rev 10409)
@@ -90,6 +90,11 @@
 		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) {



More information about the samba-cvs mailing list