recoverd: update_capabilities() should use connected nodes
authorMartin Schwenke <martin@meltin.net>
Mon, 18 Feb 2013 05:39:00 +0000 (16:39 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 20 Feb 2013 03:51:24 +0000 (14:51 +1100)
... as the comment says... not just active nodes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

server/ctdb_recoverd.c

index 95172a1fd7739889e971fe447e709ecefe371926..1f2a772a2b7027d55bee6fe5180e1e9def3aeec0 100644 (file)
@@ -254,7 +254,7 @@ static int update_capabilities(struct ctdb_context *ctdb, struct ctdb_node_map *
        tmp_ctx = talloc_new(ctdb);
        CTDB_NO_MEMORY(ctdb, tmp_ctx);
 
-       nodes = list_of_active_nodes(ctdb, nodemap, tmp_ctx, true);
+       nodes = list_of_connected_nodes(ctdb, nodemap, tmp_ctx, true);
        if (ctdb_client_async_control(ctdb, CTDB_CONTROL_GET_CAPABILITIES,
                                        nodes, 0,
                                        CONTROL_TIMEOUT(),