libnet: Reset debug counters after replicating critical objects
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 5 Nov 2018 03:34:15 +0000 (16:34 +1300)
committerTim Beale <timbeale@samba.org>
Tue, 6 Nov 2018 02:39:11 +0000 (03:39 +0100)
commitc21a8ed5948d04881a8900e41386dcdfbdeef326
tree9170be4a1882f1a7a199bcd564682c3a82304481
parent02d41fea33e3ad521fbef2d4f00af2db35edd9d9
libnet: Reset debug counters after replicating critical objects

Reset the debug counters once we have finished replicating a given
partition. This helps if we replicate the same partition immediately
afterward with different options.

This helps the DC join debug look less weird. Because it replicates the
critical objects first, and then the base partition, previously it
always ended up overcounting, e.g.

Partition[DC=addom,DC=samba,DC=example,DC=com] objects[314/218]
  linked_values[48/24]

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