From 092fb9e791bcdaf6adeff1060abe36488fa773fd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Jan 2006 16:34:05 +0000 Subject: r13037: fill in the corrent maxVersion in table replies metze (This used to be commit 165538245b0772c4618895779cd468feac8494c0) --- source4/wrepl_server/wrepl_server.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') 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++; -- cgit