drs_utils: HWM in 'samba-tool drs replicate --local' always zero
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 7 Jun 2017 04:56:18 +0000 (16:56 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2017 22:25:15 +0000 (00:25 +0200)
commit4bd8467018eee181588c13490edbea26b488ee36
tree5c3e4986828d9a5892954677ce9a0799732d0c0c
parent314b96e18371e92cde8172c3f3739b52970ee2d7
drs_utils: HWM in 'samba-tool drs replicate --local' always zero

The code to check for the 'repsFrom' highwatermark didn't have any
effect because the hwm variable was overwritten (initialized to all
zeroes) further down.

Using a zero HWM probably wouldn't have impacted functionality because
we were still correctly using the uptodatenessvector, which should
avoid a full replication.

This was introduced in commit e2ba17d26af42974e5d, presumably by
accident.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/drs_utils.py