Commit 2123006d authored by unknown's avatar unknown

BUG#15530: Cluster start up "show" shows all data nodes as master during start

along with the fix for 18843, this should fix the bug.


ndb/src/mgmclient/CommandInterpreter.cpp:
  Only show we have a master if one has been elected
parent 00cfd1a7
...@@ -1085,7 +1085,7 @@ print_nodes(ndb_mgm_cluster_state *state, ndb_mgm_configuration_iterator *it, ...@@ -1085,7 +1085,7 @@ print_nodes(ndb_mgm_cluster_state *state, ndb_mgm_configuration_iterator *it,
} }
if (node_state->node_group >= 0) { if (node_state->node_group >= 0) {
ndbout << ", Nodegroup: " << node_state->node_group; ndbout << ", Nodegroup: " << node_state->node_group;
if (node_state->dynamic_id == master_id) if (master_id && node_state->dynamic_id == master_id)
ndbout << ", Master"; ndbout << ", Master";
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment