summaryrefslogtreecommitdiff
path: root/source4/wrepl_server/wrepl_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-02 17:19:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:36 -0500
commitb75ed7d7ac9b3d5beca71926a15cfec5e3a0092c (patch)
treed951c116c1399b260a8b4f16a196ca1e9d3a606e /source4/wrepl_server/wrepl_server.h
parent1a83c7388f7c677e58608b5670c335e7701fdf70 (diff)
downloadsamba-b75ed7d7ac9b3d5beca71926a15cfec5e3a0092c.tar.gz
samba-b75ed7d7ac9b3d5beca71926a15cfec5e3a0092c.tar.bz2
samba-b75ed7d7ac9b3d5beca71926a15cfec5e3a0092c.zip
r12677: get rid of the special cases for the local wins owner table entry,
the call to winsdb_get_maxVersion() is moved into place. This allows us to fetch records with the owner address that matches our local_owner address, this is important if the restart with an empty wins.ldb. w2k3 does this in the same way when you remove the database files from disk and restart the WINS-Service. metze (This used to be commit e43de87d06614206a858e1102cd82e7f02163bba)
Diffstat (limited to 'source4/wrepl_server/wrepl_server.h')
-rw-r--r--source4/wrepl_server/wrepl_server.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_server.h b/source4/wrepl_server/wrepl_server.h
index c846e08d64..1480d2799a 100644
--- a/source4/wrepl_server/wrepl_server.h
+++ b/source4/wrepl_server/wrepl_server.h
@@ -276,6 +276,14 @@ struct wreplsrv_service {
/* all partners (pull and push) */
struct wreplsrv_partner *partners;
+ /*
+ * this is our local wins_owner entry, this is also in the table list
+ * but we need a pointer to it, because we need to update it on each
+ * query to wreplsrv_find_owner(), as the local records can be added
+ * to the wins.ldb from external tools and the winsserver
+ */
+ struct wreplsrv_owner *owner;
+
/* this is a list of each wins_owner we know about in our database */
struct wreplsrv_owner *table;