summaryrefslogtreecommitdiff
path: root/sql/examples/ha_tina.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/examples/ha_tina.cc')
-rw-r--r--sql/examples/ha_tina.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc
index 07e69bfac80..bbcdfb0dafb 100644
--- a/sql/examples/ha_tina.cc
+++ b/sql/examples/ha_tina.cc
@@ -608,7 +608,9 @@ int ha_tina::rnd_init(bool scan)
current_position= next_position= 0;
records= 0;
chain_ptr= chain;
+#ifdef HAVE_MADVISE
(void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
+#endif
DBUG_RETURN(0);
}