diff options
author | unknown <jimw@mysql.com> | 2005-05-13 07:18:41 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-05-13 07:18:41 -0700 |
commit | 410b6a9ebc1d6d4b0cae68da3ec7c5f5a6ec38f9 (patch) | |
tree | c17a502638d95c63845745091449edd2189e3893 /mysys/mf_iocache.c | |
parent | 6d89aa730e6c9d507a0de2b1a0e088f174b89f22 (diff) | |
download | mariadb-git-410b6a9ebc1d6d4b0cae68da3ec7c5f5a6ec38f9.tar.gz |
Avoid doing a seek when first setting up the IO cache for a file,
which allows a FIFO to be used for the non-binary logs. (Bug #8271)
mysys/mf_iocache.c:
Don't set seek_not_done if the position of the file is already
where we expected it to be.
Diffstat (limited to 'mysys/mf_iocache.c')
-rw-r--r-- | mysys/mf_iocache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c index b86e9daf92d..32800c832b3 100644 --- a/mysys/mf_iocache.c +++ b/mysys/mf_iocache.c @@ -171,7 +171,7 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize, info->arg = 0; info->alloced_buffer = 0; info->buffer=0; - info->seek_not_done= test(file >= 0); + info->seek_not_done= test(file >= 0 && seek_offset != my_tell(file, MYF(0))); info->disk_writes= 0; #ifdef THREAD info->share=0; |