mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Small tweak for random read performance (we shouldn't always tell the OS that we will be doing a linear scan).
sql/examples/ha_tina.cc: Small tweak for random read performance.
This commit is contained in:
parent
4fdf0ce380
commit
1ac26b4a6c
1 changed files with 2 additions and 1 deletions
|
|
@ -609,7 +609,8 @@ int ha_tina::rnd_init(bool scan)
|
|||
records= 0;
|
||||
chain_ptr= chain;
|
||||
#ifdef HAVE_MADVISE
|
||||
(void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
|
||||
if (scan)
|
||||
(void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
|
||||
#endif
|
||||
|
||||
DBUG_RETURN(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue