diff options
author | unknown <stewart@mysql.com> | 2006-04-07 00:58:08 +1000 |
---|---|---|
committer | unknown <stewart@mysql.com> | 2006-04-07 00:58:08 +1000 |
commit | 2123006d3dadfcd009be999846a4aedf4ce29c2c (patch) | |
tree | e34f2d6048340c9a4f30139452193784e1efc279 /ndb | |
parent | 00cfd1a75f97eefcd9bfd64c63ee84cd33c2f648 (diff) | |
download | mariadb-git-2123006d3dadfcd009be999846a4aedf4ce29c2c.tar.gz |
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
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/mgmclient/CommandInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp index 72debcc26a9..cdfcc985cd9 100644 --- a/ndb/src/mgmclient/CommandInterpreter.cpp +++ b/ndb/src/mgmclient/CommandInterpreter.cpp @@ -1085,7 +1085,7 @@ print_nodes(ndb_mgm_cluster_state *state, ndb_mgm_configuration_iterator *it, } if (node_state->node_group >= 0) { ndbout << ", Nodegroup: " << node_state->node_group; - if (node_state->dynamic_id == master_id) + if (master_id && node_state->dynamic_id == master_id) ndbout << ", Master"; } } |