replmd: Move talloc context one level up
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 24 Oct 2018 00:46:06 +0000 (13:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Nov 2018 19:38:14 +0000 (20:38 +0100)
commitd54956fd51f356439173b24833ee88b38719fb80
tree0fdd79c891e725016f1c05f457d2b4a4e547918e
parent0ba028681dc337acf9c8c7f71fa33a8a09b87c58
replmd: Move talloc context one level up

Eventually we want to combine multiple link attributes, that apply to the
same source object, into a single DB 'modify' operation. This will mean
the memory context needs to hang around until we have performed the DB
operation (instead of allocating a temporary context for each link).

This patch moves the talloc context one level up, so a temp context gets
allocated for each link *group*, instead of for each link *attribute*.

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