vacuum: in ctdb_vacuum_db, fix the length of the array of vacuum fetch lists
authorMichael Adam <obnox@samba.org>
Thu, 3 Feb 2011 11:18:58 +0000 (12:18 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 22:21:23 +0000 (23:21 +0100)
commitecd02cbaf8ce5df646f453ac76f335a1f9082438
treee85f002ffe5d7ec27c689a255b4f13106b8082c4
parent93148b5308306c27b0b672c565c7b324ab263bd0
vacuum: in ctdb_vacuum_db, fix the length of the array of vacuum fetch lists

This patch fixes segfaults in the vacuum child when at least one
node has been stopped or removed from the cluster:

The size of the vnn_map is only the number of active nodes
(that can be lmaster). But the node numbers that are referenced
by the vnn_map spread over all configured nodes.

Since the array of vacuum fetch lists is referenced by the
key's lmaster's node number later on, the array needs to
be of size num_nodes instad of vnn_map->size.
server/ctdb_vacuum.c