Commit 80b3339f authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
  }