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:
@ -501,7 +501,7 @@ avro_binlog_end_t avro_read_all_events(AVRO_INSTANCE *router)
|
|||||||
return AVRO_BINLOG_ERROR;
|
return AVRO_BINLOG_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1)
|
while (!router->service->svc_do_shutdown)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
/* Read the header information from the file */
|
/* Read the header information from the file */
|
||||||
|
Reference in New Issue
Block a user