Stop the Avrorouter when MaxScale is shutting down

This allows for a faster controlled shutdown when binary log files are
being indexed.
This commit is contained in:
Markus Mäkelä 2016-12-17 12:14:07 +02:00
parent 7e9db7ed0c
commit 488a9d24e3

View File

@ -501,7 +501,7 @@ avro_binlog_end_t avro_read_all_events(AVRO_INSTANCE *router)
return AVRO_BINLOG_ERROR;
}
while (1)
while (!router->service->svc_do_shutdown)
{
int n;
/* Read the header information from the file */