recoverd: Fix printing of node flags from local information
authorAmitay Isaacs <amitay@gmail.com>
Wed, 23 Jan 2013 03:35:47 +0000 (14:35 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 23 Jan 2013 05:56:03 +0000 (16:56 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
server/ctdb_recoverd.c

index 0f8aa91337cba77ec2ea3fa5e9f70ccc4a91b2a4..bffe2bed4a1a2bd91c78d5922e943f7cd84be0f9 100644 (file)
@@ -3699,7 +3699,7 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec,
                                  nodemap->nodes[j].pnn, 
                                  nodemap->nodes[i].pnn, 
                                  remote_nodemaps[j]->nodes[i].flags,
-                                 nodemap->nodes[j].flags));
+                                 nodemap->nodes[i].flags));
                                if (i == j) {
                                        DEBUG(DEBUG_ERR,("Use flags 0x%02x from remote node %d for cluster update of its own flags\n", remote_nodemaps[j]->nodes[i].flags, j));
                                        update_flags_on_all_nodes(ctdb, nodemap, nodemap->nodes[i].pnn, remote_nodemaps[j]->nodes[i].flags);