1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Impl 3 of WL2278 - Dynamic port allocation of cluster nodes

- 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
This commit is contained in:
unknown
2005-01-04 15:20:27 +11:00
parent 0cf733b9b6
commit d362d09408
7 changed files with 49 additions and 54 deletions

View File

@@ -83,7 +83,7 @@ public:
* bind & listen
* Returns false if no success
*/
bool setup(Service *, unsigned short port, const char * pinterface = 0);
bool setup(Service *, unsigned short *port, const char * pinterface = 0);
/**
* start/stop the server