Commit 80b3339f authored by unknown's avatar unknown

Integrate suggestions from Tomas Ulin's mail. (r.e. reporting an error in the...

Integrate suggestions from Tomas Ulin's mail. (r.e. reporting an error in the case of endianness mismatch).


ndb/src/mgmsrv/Services.cpp:
  - initialise endian= 0;
    args.get will not set if not found
  
  - change error message to be clearer
parent a5cc93b9
......@@ -387,7 +387,7 @@ MgmApiSession::get_nodeid(Parser_t::Context &,
const char * user;
const char * password;
const char * public_key;
const char * endian;
const char * endian= NULL;
union { long l; char c[sizeof(long)]; } endian_check;
args.get("version", &version);
......@@ -403,7 +403,7 @@ MgmApiSession::get_nodeid(Parser_t::Context &,
if(endian
&& strcmp(endian,(endian_check.c[sizeof(long)-1])?"big":"little")!=0) {
m_output->println(cmd);
m_output->println("result: Endianness of nodes does not match.");
m_output->println("result: Node does not have the same endianness as the management server.");
m_output->println("");
return;
}
......
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