Added comment to server selection routine

This commit is contained in:
VilhoRaatikka
2014-11-05 12:15:48 +02:00
parent 3278be565a
commit 42fc241cb7

View File

@ -2631,7 +2631,12 @@ static bool select_connect_backend_servers(
/* get the root Master */
master_host = get_root_master(backend_ref, router_nservers);
/** Master is already chosen and connected. This is slave failure case */
/**
* Master is already chosen and connected. It means that the function
* was called from error handling function or from some other similar
* function where session was already established but new slaves needed
* to be selected.
*/
if (*p_master_ref != NULL &&
BREF_IS_IN_USE((*p_master_ref)))
{