getncchanges.c: Rename anc_cache to obj_cache
authorTim Beale <timbeale@catalyst.net.nz>
Fri, 2 Jun 2017 02:42:34 +0000 (14:42 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 15 Sep 2017 04:18:12 +0000 (06:18 +0200)
commit240e4336117bf22c3d64371fecb608118691a315
tree42a31e92321656a5731c24ec017a7fd448fcb062
parent3ed9c903671e795964ce3da9d0080444ef3eb5e9
getncchanges.c: Rename anc_cache to obj_cache

When we add GET_TGT support we will reuse the ancestor cache and it
should work the same way - if we've already sent an object because it
was needed for resolving a child object or a link target, then there's
no point sending it again.

This just renames anc_cache --> obj_cache.

An extra is_get_anc flag has been added to getnc_state - once GET_TGT
support is added, we can't assume GET_ANC based solely on the existence
of the obj_cache.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/rpc_server/drsuapi/getncchanges.c