ctdb-vacuum: Fix the incorrect counting of remote errors
authorAmitay Isaacs <amitay@gmail.com>
Wed, 14 Feb 2018 04:18:17 +0000 (15:18 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 8 Oct 2018 00:46:21 +0000 (02:46 +0200)
commitef052397173522ac2dd0d0bd9660a18a13a3e4fc
tree2baeabfaf55555b0a4798c50b7d072c87e1810cd
parent202b9027ba44eee33c2fde2332126be10f719423
ctdb-vacuum: Fix the incorrect counting of remote errors

If a node fails to delete a record in TRY_DELETE_RECORDS control during
vacuuming, then it's possible that other nodes also may fail to delete a
record.  So instead of deleting the record from RB tree on first failure,
keep track of the remote failures.

Update delete_list.remote_error and delete_list.left statistics only
once per record during the delete_record_traverse.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13641

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/server/ctdb_vacuum.c