diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-01-13 08:38:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:00 -0500 |
commit | f3ef8fc691eded248d42b2a2a1467c8bf9fefcf7 (patch) | |
tree | a92f9a305e134e04ad9f01342679ce38217f3ed8 /source4/nbt_server/wins | |
parent | 7d3d89bc99177a26f9ef77850142d8b532f4d6f4 (diff) | |
download | samba-f3ef8fc691eded248d42b2a2a1467c8bf9fefcf7.tar.gz samba-f3ef8fc691eded248d42b2a2a1467c8bf9fefcf7.tar.bz2 samba-f3ef8fc691eded248d42b2a2a1467c8bf9fefcf7.zip |
r12897: make it possible to use nosync transaction to speed things up,
(just for testing)
metze
(This used to be commit 677c1aa4663e9e5f0729a312152565a6740dbab2)
Diffstat (limited to 'source4/nbt_server/wins')
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 7 |
1 files changed, 6 insertions, 1 deletions
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"); |