From f3ef8fc691eded248d42b2a2a1467c8bf9fefcf7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 13 Jan 2006 08:38:11 +0000 Subject: r12897: make it possible to use nosync transaction to speed things up, (just for testing) metze (This used to be commit 677c1aa4663e9e5f0729a312152565a6740dbab2) --- source4/nbt_server/wins/winsdb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index 0608575db2..a4b0ab9ffd 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -769,12 +769,17 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx) { 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"); -- cgit