mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
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
This commit is contained in:
parent
605f7061dc
commit
28a467c6fa
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue