MXS-2556 Add master configuration handling to SmartRouter

This commit is contained in:
Johan Wikman
2019-06-10 19:07:12 +03:00
parent 68af4cb62e
commit acdc3b2396
3 changed files with 110 additions and 2 deletions

View File

@ -121,6 +121,9 @@ SmartRouterSession* SmartRouterSession::create(SmartRouter* pRouter, MXS_SESSION
{
Clusters clusters;
SERVER* pMaster = pRouter->config().master();
// TODO: Use pMaster below.
bool is_master = true; // TODO this will be read from config
int master_pos = 0; // and this will be initialized to the position of the master