mirror of
https://github.com/MariaDB/server.git
synced 2025-11-16 20:23:18 +03:00
WL2278 Dynamic ports - Impl 6, "deal with mgm server restart and multiple mgm servers"
- when connecting to a mgm server as a transporter, create a NdbMgmHandle - over this mgm handle, report the dynamic ports - then turn it into a transporter - this will re-report dynamic ports to mgmds when they restart (as we'll have to set up our transporter again). This will also report it to all mgmds (as we'll have transporters to all of them).
This commit is contained in:
@@ -35,8 +35,9 @@ public:
|
||||
m_port = port;
|
||||
m_servaddr.sin_port = htons(m_port);
|
||||
};
|
||||
unsigned short get_port() { return m_port; };
|
||||
char *get_server_name() { return m_server_name; };
|
||||
NDB_SOCKET_TYPE connect();
|
||||
NDB_SOCKET_TYPE connect_without_auth();
|
||||
bool close();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user