summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-11-07 13:11:04 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-07 13:11:04 +0200
commit862af4d255cade35f9b1f65fd11dba30874fd8fc (patch)
treebf46bbba8b838db3e890e368c6839a07e2bd5c24 /mysys/mf_iocache.c
parent54b2e1c1bea357ca37ce537e24c6c120a43f5958 (diff)
parente82ebb8f06674a22d959b91415c084ed34fe994d (diff)
downloadmariadb-git-862af4d255cade35f9b1f65fd11dba30874fd8fc.tar.gz
Merge 10.2 into 10.3
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 85a2cf88802..4f22921aeff 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 */