s4:winsdb: place wins.ldb in "state dir" instead of "lock dir"
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Jul 2011 11:52:54 +0000 (13:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Jul 2011 14:16:45 +0000 (16:16 +0200)
It's not only a cache as we also support static records.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 16:16:45 CEST 2011 on sn-devel-104

source4/nbt_server/wins/winsdb.c

index 4a1486092b247fb958d723e60590717e941d8816..67274454372cf496170bc6cf6721803fe55674ac 100644 (file)
@@ -975,7 +975,7 @@ static bool winsdb_check_or_add_module_list(struct tevent_context *ev_ctx,
                flags |= LDB_FLG_NOSYNC;
        }
 
-       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lpcfg_lock_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
+       h->ldb = ldb_wrap_connect(h, ev_ctx, lp_ctx, lpcfg_state_path(h, lp_ctx, lpcfg_wins_url(lp_ctx)),
                                  NULL, NULL, flags);
        if (!h->ldb) goto failed;