replmd: Pass old_el into replmd_process_linked_attribute()
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 11 Nov 2018 23:00:47 +0000 (12:00 +1300)
committerTim Beale <timbeale@samba.org>
Wed, 21 Nov 2018 00:51:11 +0000 (01:51 +0100)
commit90f5e49a8797f821b07ae761056ec0c5235f8978
tree0c17d13ac68efe4515d62ccb5c8c3f44c0cbe297
parent19a36b367f1a33f1eb65e0c5164a3209fcef16e6
replmd: Pass old_el into replmd_process_linked_attribute()

We should only need to lookup the msg attribute once per source object.
The old_el->values may change due to link-processing, but old_el itself
should not.

This is not aimed at improving performance, but we need to change how
old_el is used before we can change pdn_list (which is more costly
processing-wise).

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