summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorjoerg@mysql.com <>2005-08-25 11:46:17 +0200
committerjoerg@mysql.com <>2005-08-25 11:46:17 +0200
commitfea0745ba8fa673ad821acb5832e85b9516242ed (patch)
tree27462e625a85629992fda011133d406442c47cd1 /sql/examples
parentc8bfd8c2d2c97c8a58d6fdedba1bea9eb1e89003 (diff)
parentbd2901a250de7ac577020477bfe558364b498792 (diff)
downloadmariadb-git-fea0745ba8fa673ad821acb5832e85b9516242ed.tar.gz
Merge mysql.com:/M50/clone-5.0 into mysql.com:/M50/push-5.0
Diffstat (limited to 'sql/examples')
-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 1e2751f3016..26cd3d2a07e 100644
--- a/sql/examples/ha_tina.cc
+++ b/sql/examples/ha_tina.cc
@@ -650,7 +650,9 @@ int ha_tina::rnd_init(bool scan)
current_position= next_position= 0;
records= 0;
chain_ptr= chain;
+#ifdef MADV_SEQUENTIAL
(void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL);
+#endif
DBUG_RETURN(0);
}