vacuum: correctly send TRY_DELETE_RECORDS ctrl to all active nodes
commit70fa7394faaebebe777d168adc9fc89459d476e8
authorMichael Adam <obnox@samba.org>
Thu, 3 Feb 2011 11:26:45 +0000 (3 12:26 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 14 Mar 2011 12:35:43 +0000 (14 13:35 +0100)
tree90a991c30f4ec9f6abbac0dc9985994cc2ccbb95
parent33b5d9c1a147b7d3acc923aa517dd60b8859b091
vacuum: correctly send TRY_DELETE_RECORDS ctrl to all active nodes

Originally, the control was sent to all records in the vnn_map, but
there was something still missing here:
When a node can not become lmaster (via CTDB_CAPABILITY_LMASTER=no)
then it will not be part of the vnn_map. So such a node would
be active but never receive the TRY_DELETE_RECORDS control from a
vacuuming run.

This is fixed in this change by correctly building the list of
active nodes first in the same way that the recovery process does it.

(This used to be ctdb commit 49247df4a47a8a107fa7dd7b187e69e243e6bdbe)
ctdb/server/ctdb_vacuum.c