replmd: Refactor logic to check if replicated link is newer
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 18 Sep 2017 04:33:30 +0000 (16:33 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 20 Oct 2017 02:05:20 +0000 (04:05 +0200)
commit21179febe8f9dca478404c9e43203755f42f8bcf
treeb0ff4280762dd9c258fdf2a8f72e5d8a0231d3a9
parent91951d869f8a2e06869577f36e0fb5af806ffa99
replmd: Refactor logic to check if replicated link is newer

This is precursor work for supporting single-link conflicts.

Split out the code to check if the link update is newer. It's now safe
to call this from the main codepath. This also means we can combine the 2
calls to get the seqnum into a single common call.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13055

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c