replmd: Move link conflict handling into separate function
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 27 Sep 2017 21:22:55 +0000 (10:22 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 20 Oct 2017 02:05:21 +0000 (04:05 +0200)
commit841e724e29be6c97a6bc2cfd8a97778b02aa77ca
tree4913a2117260e58f2c6472ffcec13316a0f3766a
parent82b56e63b5cb7e19a580a7cdeaf1caa8608852bc
replmd: Move link conflict handling into separate function

Link conflict handling is a corner-case. The logic in
replmd_process_linked_attribute() is already reasonably busy/complex.
Split out the handling of link conflicts into a separate function so
that it doesn't detract from the core replmd_process_linked_attribute()
logic too much.

This refactor should not alter functionality.

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