libnet/drs: Update replication debug to report link progress
authorTim Beale <timbeale@catalyst.net.nz>
Fri, 12 Oct 2018 00:29:32 +0000 (13:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 17 Oct 2018 03:40:07 +0000 (05:40 +0200)
commit539daefaf3f7edb6a630f3d57fb590f57a6ab688
tree5408bbe796bada0a7d8042f68f7790e2e73b125f
parent3713905f8b4baa56b1bf571f71009cd77ccda6eb
libnet/drs: Update replication debug to report link progress

Update the replication debug (for joins/backups) so that it's easier to
see how far through syncing the links we are. E.g. with 150,000 links,
you just get screeds of debug like this, with no real idea how far
through the replication is.

Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[1500/150024]
Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[1500/150024]
Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[1500/150024]

This patch now applies to links the same debug logic we use for objects,
and changes it to look like:

Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[57024/150024]
Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[58524/150024]
Partition[DC=addom,DC=samba,DC=example,DC=com] objects[11816/11720]
linked_values[60024/150024]

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