MXS-2610: Prevent watchdog timeouts in avrorouter

The file processing can take a very long time and as it is done on a
routing worker, the workaround needs to be used.
This commit is contained in:
Markus Mäkelä 2019-10-29 08:49:14 +02:00
parent 195a016b7c
commit ac5b5d527a
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -37,6 +37,7 @@
#include <maxscale/maxscale.h>
#include <maxscale/pcre2.h>
#include <maxscale/utils.h>
#include <maxscale/routingworker.hh>
static const char* statefile_section = "avro-conversion";
@ -529,6 +530,7 @@ bool read_fde(Avro* router)
*/
avro_binlog_end_t avro_read_all_events(Avro* router)
{
mxs::WatchdogWorkaround workaround;
mxb_assert(router->binlog_fd != -1);
if (!read_fde(router))