replmd: replmd_process_link_attribute() returns type of change made
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 11 Nov 2018 21:43:39 +0000 (10:43 +1300)
committerTim Beale <timbeale@samba.org>
Wed, 21 Nov 2018 00:51:11 +0000 (01:51 +0100)
commitcb3520fbaf9413da71645e653f9501d1645405b4
treee6144b0804c3a43c82bd9077414330ce3d9d0c00
parentad57cac7db0873cbe1c42173ed36ad41a75ed9a4
replmd: replmd_process_link_attribute() returns type of change made

In order to share work across related link attribute updates, we need
replmd_process_link_attribute() to let the caller know what actually
changed.

This patch adds an extra return type that'll be used in the next patch.
What we're interested in is: the update was ignored (i.e. it's old news),
a new link attribute was added (because this affects the overall
msg/element memory), and an existing link attribute was modified (due to
how links are actually stored, this includes deleting the link, as in
reality it simply involves setting the existing link to 'inactive').

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