Added check for missing service listener
Added check for missing service listener
This commit is contained in:
@ -50,6 +50,7 @@
|
|||||||
* 30/09/2015 Massimiliano Pinto Addition of send_slave_heartbeat option
|
* 30/09/2015 Massimiliano Pinto Addition of send_slave_heartbeat option
|
||||||
* 23/10/2015 Markus Makela Added current_safe_event
|
* 23/10/2015 Markus Makela Added current_safe_event
|
||||||
* 27/10/2015 Martin Brampton Amend getCapabilities to return RCAP_TYPE_NO_RSESSION
|
* 27/10/2015 Martin Brampton Amend getCapabilities to return RCAP_TYPE_NO_RSESSION
|
||||||
|
* 26/11/2015 Massimiliano Pinto Added check for missing service listener
|
||||||
*
|
*
|
||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
@ -217,6 +218,14 @@ char task_name[BLRM_TASK_NAME_LEN+1] = "";
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check for listeners associated to this service */
|
||||||
|
if (service->ports == NULL)
|
||||||
|
{
|
||||||
|
MXS_ERROR("%s: Error: No listener configured for binlogrouter. Add a listener section in config file.",
|
||||||
|
service->name);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We only support one server behind this router, since the server is
|
* We only support one server behind this router, since the server is
|
||||||
* the master from which we replicate binlog records. Therefore check
|
* the master from which we replicate binlog records. Therefore check
|
||||||
|
Reference in New Issue
Block a user