summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-08-31 18:34:16 -0700
committerjimw@mysql.com <>2005-08-31 18:34:16 -0700
commitc3f4ecb544ffb597bcf5b2aae7efccb5699fec48 (patch)
tree80e1955f8266db9ec4aff1ea0e0b35fbf3d036ab /sql/examples
parent0ebf1576dc89be0901ed757355fa3f030a483105 (diff)
parent37bf8394ab32a2a77a0bbc73c0cc3a54129fe27f (diff)
downloadmariadb-git-c3f4ecb544ffb597bcf5b2aae7efccb5699fec48.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-7156
into mysql.com:/home/jimw/my/mysql-4.1-clean
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 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);
}