svn commit: samba r12897 - in branches/SAMBA_4_0/source/nbt_server/wins: .

metze at samba.org metze at samba.org
Fri Jan 13 08:38:11 GMT 2006


Author: metze
Date: 2006-01-13 08:38:11 +0000 (Fri, 13 Jan 2006)
New Revision: 12897

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

Log:
make it possible to use nosync transaction to speed things up,
(just for testing)

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2006-01-13 08:22:21 UTC (rev 12896)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2006-01-13 08:38:11 UTC (rev 12897)
@@ -769,12 +769,17 @@
 {
 	struct winsdb_handle *h = NULL;
 	const char *owner;
+	unsigned int flags = 0;
 
 	h = talloc(mem_ctx, struct winsdb_handle);
 	if (!h) return NULL;
 
+	if (lp_parm_bool(-1,"winsdb", "nosync", False)) {
+		flags |= LDB_FLG_NOSYNC;
+	}
+
 	h->ldb = ldb_wrap_connect(h, lock_path(h, lp_wins_url()),
-				  system_session(h), NULL, 0, NULL);
+				  system_session(h), NULL, flags, NULL);
 	if (!h->ldb) goto failed;
 
 	owner = lp_parm_string(-1, "winsdb", "local_owner");



More information about the samba-cvs mailing list