Commit 1ac26b4a authored by unknown's avatar unknown
Browse files

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). 


sql/examples/ha_tina.cc:
  Small tweak for random read performance.
parent 4fdf0ce3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -609,6 +609,7 @@ int ha_tina::rnd_init(bool scan)
  records= 0;
  chain_ptr= chain;
#ifdef HAVE_MADVISE
  if (scan)
    (void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
#endif