Commit 71113c68 authored by unknown's avatar unknown

BUG#23354 Clear "no start" when nodes restart and add new prompting string when nodes restart


ndb/src/common/debugger/EventLogger.cpp:
  Remove "no start" from output when nodes restart.
ndb/src/mgmclient/CommandInterpreter.cpp:
  Add new prompting string when nodes restart.
parent ad33a48a
...@@ -91,8 +91,6 @@ void getRestartAction(Uint32 action, BaseString &str) ...@@ -91,8 +91,6 @@ void getRestartAction(Uint32 action, BaseString &str)
if (action == 0) if (action == 0)
return; return;
str.appfmt(", restarting"); str.appfmt(", restarting");
if (action & 2)
str.appfmt(", no start");
if (action & 4) if (action & 4)
str.appfmt(", initial"); str.appfmt(", initial");
} }
......
...@@ -2026,7 +2026,7 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list, ...@@ -2026,7 +2026,7 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list,
return -1; return -1;
} }
if (!nostart) if (nostart)
ndbout_c("Shutting down nodes with \"-n, no start\" option, to subsequently start the nodes."); ndbout_c("Shutting down nodes with \"-n, no start\" option, to subsequently start the nodes.");
result= ndb_mgm_restart3(m_mgmsrv, no_of_nodes, node_ids, result= ndb_mgm_restart3(m_mgmsrv, no_of_nodes, node_ids,
...@@ -2046,7 +2046,15 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list, ...@@ -2046,7 +2046,15 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list,
ndbout << "Node"; ndbout << "Node";
for (int i= 0; i < no_of_nodes; i++) for (int i= 0; i < no_of_nodes; i++)
ndbout << " " << node_ids[i]; ndbout << " " << node_ids[i];
ndbout_c(" is being restarted"); ndbout_c(": Is being restarted");
ndbout << "Node";
for (int i= 0; i < no_of_nodes; i++)
ndbout << " " << node_ids[i];
if (nostart)
ndbout_c(": No start");
else
ndbout_c(": Is rejoining the cluster");
} }
if(need_disconnect) if(need_disconnect)
disconnect(); disconnect();
......
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