summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-11-07 08:02:18 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-07 08:02:18 +0200
commit5f29fdecc0e22048e860ac256cc071ce206d453e (patch)
treeff7f2a1d051443fd3067219ff3006a7878cc88f0 /mysys/mf_iocache.c
parent9c026273a923f3433ad622124d7a008ce6b5c487 (diff)
parentb68d8a05d326bed43aefa73d717c0307278ca6bb (diff)
downloadmariadb-git-5f29fdecc0e22048e860ac256cc071ce206d453e.tar.gz
Merge 5.5 into 10.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 f356aa91929..bb638c94d18 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -282,6 +282,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 */