summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-12-20 15:46:05 +0100
committerStefan Metzmacher <metze@samba.org>2013-01-01 19:28:06 +0100
commitad43bb6086a7dbf48b405d0372ae85d2244384d9 (patch)
tree1c63f361eca9cf05ddaafab8e09ebb9f35714e83 /source4/dsdb/samdb/ldb_modules/repl_meta_data.c
parent634f8cf7c43bd60507d842d35cf46c0017e34dce (diff)
downloadsamba-ad43bb6086a7dbf48b405d0372ae85d2244384d9.tar.gz
samba-ad43bb6086a7dbf48b405d0372ae85d2244384d9.tar.bz2
samba-ad43bb6086a7dbf48b405d0372ae85d2244384d9.zip
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 <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c6
1 files changed, 1 insertions, 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 6a69f7d1c9..b7d9248675 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;
}