From ad43bb6086a7dbf48b405d0372ae85d2244384d9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 20 Dec 2012 15:46:05 +0100 Subject: [PATCH] s4:dsdb/repl_meta_data: also update the last_sync_success in replUpToDateVector This matches Windows 2008R2 and Windows 2012. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 6a69f7d1c95..b7d9248675c 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -4563,12 +4563,8 @@ static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *a found = true; - /* - * we update only the highest_usn and not the latest_sync_success time, - * because the last success stands for direct replication - */ if (ruv->cursors[i].highest_usn > nuv.ctr.ctr2.cursors[j].highest_usn) { - nuv.ctr.ctr2.cursors[j].highest_usn = ruv->cursors[i].highest_usn; + nuv.ctr.ctr2.cursors[j] = ruv->cursors[i]; } break; } -- 2.11.4.GIT