diff options
author | unknown <stewart@mysql.com> | 2005-01-04 15:20:27 +1100 |
---|---|---|
committer | unknown <stewart@mysql.com> | 2005-01-04 15:20:27 +1100 |
commit | d362d09408931f1ee751886763355a5d05b8da70 (patch) | |
tree | fac11609a10f6fe65bec267cc9205547128d6800 /ndb/include/util | |
parent | 0cf733b9b60f9f31ca8cf4bbbea6784a585008a8 (diff) | |
download | mariadb-git-d362d09408931f1ee751886763355a5d05b8da70.tar.gz |
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
Diffstat (limited to 'ndb/include/util')
-rw-r--r-- | ndb/include/util/SocketServer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/include/util/SocketServer.hpp b/ndb/include/util/SocketServer.hpp index 9d8af204391..2e1afb74945 100644 --- a/ndb/include/util/SocketServer.hpp +++ b/ndb/include/util/SocketServer.hpp @@ -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 |