Commit 8a5c2453 authored by brian@zim.(none)'s avatar brian@zim.(none)

Small tweak for random read performance (we shouldn't always tell the OS that...

Small tweak for random read performance (we shouldn't always tell the OS that we will be doing a linear scan). 
parent a0ddff9c
...@@ -609,6 +609,7 @@ int ha_tina::rnd_init(bool scan) ...@@ -609,6 +609,7 @@ int ha_tina::rnd_init(bool scan)
records= 0; records= 0;
chain_ptr= chain; chain_ptr= chain;
#ifdef HAVE_MADVISE #ifdef HAVE_MADVISE
if (scan)
(void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL); (void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
#endif #endif
......
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