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>
Wed, 9 Mar 2011 22:21:23 +0000 (23:21 +0100)
commit4a34b5c863bf4e007ebc807fd955e401e13ee847
tree6832f695fc4f1cacce4b0367489d9409eceae515
parentecd02cbaf8ce5df646f453ac76f335a1f9082438
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