From 488a9d24e3fd4bac05f577e8a476e47e601d521b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 17 Dec 2016 12:14:07 +0200 Subject: [PATCH] Stop the Avrorouter when MaxScale is shutting down This allows for a faster controlled shutdown when binary log files are being indexed. --- server/modules/routing/avrorouter/avro_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/avrorouter/avro_file.c b/server/modules/routing/avrorouter/avro_file.c index 23ad1d904..269662af5 100644 --- a/server/modules/routing/avrorouter/avro_file.c +++ b/server/modules/routing/avrorouter/avro_file.c @@ -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 */