summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tulin@dl145b.mysql.com>2005-06-02 21:14:14 +0200
committerunknown <tulin@dl145b.mysql.com>2005-06-02 21:14:14 +0200
commit28a467c6faeac2e33637ce9bff9670987257a300 (patch)
tree8fd7f5cb5cd94c28c3c5a2c6ec51dc4e3dc4d0af /ndb
parent605f7061dc2ca28d78ad652b9b5a7225f55ccb9a (diff)
downloadmariadb-git-28a467c6faeac2e33637ce9bff9670987257a300.tar.gz
CommandInterpreter.cpp:
Bug #11050 ndb_mgm "show" prints incorrectly after master data node fails ndb/src/mgmclient/CommandInterpreter.cpp: Bug #11050 ndb_mgm "show" prints incorrectly after master data node fails
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp
index c3b0ee7fe97..34fe57d1fca 100644
--- a/ndb/src/mgmclient/CommandInterpreter.cpp
+++ b/ndb/src/mgmclient/CommandInterpreter.cpp
@@ -1176,7 +1176,8 @@ CommandInterpreter::executeShow(char* parameters)
api_nodes++;
break;
case NDB_MGM_NODE_TYPE_NDB:
- if (state->node_states[i].dynamic_id < master_id)
+ if (state->node_states[i].dynamic_id &&
+ state->node_states[i].dynamic_id < master_id)
master_id= state->node_states[i].dynamic_id;
ndb_nodes++;
break;