vacuum: correctly send TRY_DELETE_RECORDS ctrl to all active nodes
authorMichael Adam <obnox@samba.org>
Thu, 3 Feb 2011 11:26:45 +0000 (12:26 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 14 Mar 2011 12:35:43 +0000 (13:35 +0100)
commit49247df4a47a8a107fa7dd7b187e69e243e6bdbe
tree7878d0c702012f89f5a1dd638ca8a559bfc438ba
parent136508e3f4dd0acc210dde938ad59ef38b63d3a1
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.
server/ctdb_vacuum.c