diff --git a/server/modules/routing/binlog/maxbinlogcheck.c b/server/modules/routing/binlog/maxbinlogcheck.c index 546f8dd13..79cc30382 100644 --- a/server/modules/routing/binlog/maxbinlogcheck.c +++ b/server/modules/routing/binlog/maxbinlogcheck.c @@ -208,6 +208,8 @@ int main(int argc, char **argv) { close(inst->binlog_fd); + skygw_log_sync_all(); + LOGIF(LM, (skygw_log_write_flush(LOGFILE_MESSAGE, "Check retcode: %i, Binlog Pos = %llu", ret, inst->binlog_position)));