recoverd: Ignore failed flag updates on inactive nodes
authorAmitay Isaacs <amitay@gmail.com>
Fri, 27 Sep 2013 08:02:39 +0000 (18:02 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 25 Nov 2013 02:39:38 +0000 (13:39 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-with: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 484c46eaae056480baf050fd91868f2fd0537985)

server/ctdb_recoverd.c

index f7cee5881ae23a765aa0c3bd07edff6d7e13a768..ffbc2b7cfcb377e35e3a9fb24c57cec93cfbfa90 100644 (file)
@@ -1630,8 +1630,12 @@ static int do_recovery(struct ctdb_recoverd *rec,
 
                ret = update_flags_on_all_nodes(ctdb, nodemap, i, nodemap->nodes[i].flags);
                if (ret != 0) {
-                       DEBUG(DEBUG_ERR, (__location__ " Unable to update flags on all nodes for node %d\n", i));
-                       return -1;
+                       if (nodemap->nodes[i].flags & NODE_FLAGS_INACTIVE) {
+                               DEBUG(DEBUG_WARNING, (__location__ "Unable to update flags on inactive node %d\n", i));
+                       } else {
+                               DEBUG(DEBUG_ERR, (__location__ " Unable to update flags on all nodes for node %d\n", i));
+                               return -1;
+                       }
                }
        }