Commit 165f2abb authored by jimw@mysql.com's avatar jimw@mysql.com

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)
parent b4dcd8f4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment