• unknown's avatar
    Impl 3 of WL2278 - Dynamic port allocation of cluster nodes · d362d094
    unknown authored
    - Change configuration handling so that no default ports are given, but instead 0 is set (port to be dynamic)
    - TransporterRegistry::start_service now only tries to connect when fetched port number > 0
    
    
    ndb/include/util/SocketServer.hpp:
      Update prototype of setup() to take a pointer to the port (so we can return the port we bound to)
    ndb/src/common/transporter/TransporterRegistry.cpp:
      Only try to connect_client when we have a valid port number (i.e. > 0)
    ndb/src/common/util/SocketServer.cpp:
      ::setup(): Return the port we bound to
    ndb/src/cw/cpcd/main.cpp:
      Use new SocketServer::setup() api - returns port we bound to.
    ndb/src/mgmsrv/main.cpp:
      Conform to new SocketServer::setup() API (port is a pointer, returning the port we bound to)
    ndb/src/mgmsrv/ConfigInfo.cpp:
      fixPortNumber:
      Don't create port numbers when none are specified, just set 0 (dynamic)
    ndb/src/mgmsrv/MgmtSrvr.cpp:
      use DBUG_RETURN correctly in setConnectionDbParameter
    d362d094
main.cpp 9.11 KB