summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorZicheng Huang <hzc989@outlook.com>2019-02-27 08:31:35 +0000
committerOleksandr "Sanja" Byelkin <sanja.byelkin@gmail.com>2019-06-05 13:56:27 +0200
commitd7c8423a3d44a5eb9bb22efd957eab3f32497b0f (patch)
treea14f39d1c0d194a7491b2278692bba78a1082350 /mysys
parentb4287ec3865d90920f0cc440c36f4873dcf51703 (diff)
downloadmariadb-git-d7c8423a3d44a5eb9bb22efd957eab3f32497b0f.tar.gz
fix MDEV-18750: failed to flashback large-size binlog file
fix MDEV-18750: failed to flashback large-size binlog file fix mysqlbinlog flashback failure caused by reading io_cache without MY_FULL_IO flag fix MDEV-18750: mysqlbinlog flashback failure on large binlog
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_iocache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 92bca16c24f..d7689e204b6 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -120,6 +120,10 @@ init_functions(IO_CACHE* info)
DBUG_ASSERT(0);
break;
}
+ if (type == READ_CACHE || type == WRITE_CACHE || type == SEQ_READ_APPEND)
+ info->myflags|= MY_FULL_IO;
+ else
+ info->myflags&= ~MY_FULL_IO;
}
@@ -296,10 +300,6 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
}
info->inited=info->aio_result.pending=0;
#endif
- if (type == READ_CACHE || type == WRITE_CACHE || type == SEQ_READ_APPEND)
- info->myflags|= MY_FULL_IO;
- else
- info->myflags&= ~MY_FULL_IO;
DBUG_RETURN(0);
} /* init_io_cache */