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:
@@ -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
|
||||
|
Reference in New Issue
Block a user