mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
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.
This commit is contained in:
parent
6d89aa730e
commit
410b6a9ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue