summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-11-08 09:50:56 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-08 10:19:55 +0200
commitc761b43451d54eeeecdf3c102906fcce88d4e9d9 (patch)
treec00b07bf4b36108f1ecbfc3015b5594899e0e248 /mysys/mf_iocache.c
parent07e4853c232726a639b30d4718bef9914ea42d24 (diff)
parentbac2ec3a5b28ed590826b20a4cf27fd788903bbd (diff)
downloadmariadb-git-c761b43451d54eeeecdf3c102906fcce88d4e9d9.tar.gz
Merge 10.3 into 10.4mariadb-10.4.0
Diffstat (limited to 'mysys/mf_iocache.c')
-rw-r--r--mysys/mf_iocache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 0f93b2303b3..6150473c2f0 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -297,6 +297,10 @@ 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 */