summaryrefslogtreecommitdiff
path: root/source4/wrepl_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-19 16:34:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:18 -0500
commit092fb9e791bcdaf6adeff1060abe36488fa773fd (patch)
tree5e9341973a5edc951618cda7edd338c5b3e15bf4 /source4/wrepl_server
parent63bbc2aea6edf51fb4c2dd678b780b2ade9542ce (diff)
downloadsamba-092fb9e791bcdaf6adeff1060abe36488fa773fd.tar.gz
samba-092fb9e791bcdaf6adeff1060abe36488fa773fd.tar.bz2
samba-092fb9e791bcdaf6adeff1060abe36488fa773fd.zip
r13037: fill in the corrent maxVersion in table replies
metze (This used to be commit 165538245b0772c4618895779cd468feac8494c0)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r--source4/wrepl_server/wrepl_server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c
index 299f0648e6..a4dc6e2c74 100644
--- a/source4/wrepl_server/wrepl_server.c
+++ b/source4/wrepl_server/wrepl_server.c
@@ -236,6 +236,14 @@ NTSTATUS wreplsrv_fill_wrepl_table(struct wreplsrv_service *service,
NT_STATUS_HAVE_NO_MEMORY(table_out->partners);
for (cur = service->table; cur && i < table_out->partner_count; cur = cur->next) {
+ /*
+ * if it's our local entry
+ * update the max version
+ */
+ if (cur == service->owner) {
+ cur->owner.max_version = winsdb_get_maxVersion(service->wins_db);
+ }
+
if (full_table) {
table_out->partners[i] = cur->owner;
i++;