Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added check for missing service listener
Added check for missing service listener
  • Loading branch information
MassimilianoPinto committed Nov 26, 2015
1 parent 916ee5f commit dd922a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/modules/routing/binlog/blr.c
Expand Up @@ -50,6 +50,7 @@
* 30/09/2015 Massimiliano Pinto Addition of send_slave_heartbeat option
* 23/10/2015 Markus Makela Added current_safe_event
* 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
*/
Expand Down Expand Up @@ -217,6 +218,14 @@ char task_name[BLRM_TASK_NAME_LEN+1] = "";
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
* the master from which we replicate binlog records. Therefore check
Expand Down

0 comments on commit dd922a1

Please sign in to comment.