Fix to bug #640, http://bugs.mariadb.com/show_bug.cgi?id=640
This commit is contained in:
@ -352,15 +352,25 @@ int listeners = 0;
|
||||
service->router_instance = service->router->createInstance(service,
|
||||
service->routerOptions);
|
||||
|
||||
port = service->ports;
|
||||
while (port)
|
||||
if (service->router_instance == NULL)
|
||||
{
|
||||
listeners += serviceStartPort(service, port);
|
||||
port = port->next;
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
LOGFILE_ERROR,
|
||||
"Error : starting the %s service failed.",
|
||||
service->name)));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
port = service->ports;
|
||||
while (port)
|
||||
{
|
||||
listeners += serviceStartPort(service, port);
|
||||
port = port->next;
|
||||
}
|
||||
if (listeners)
|
||||
service->stats.started = time(0);
|
||||
}
|
||||
if (listeners)
|
||||
service->stats.started = time(0);
|
||||
|
||||
return listeners;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user