summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-08-25 11:46:17 +0200
committerunknown <joerg@mysql.com>2005-08-25 11:46:17 +0200
commitf1ecbe624d61f2203b104a54e826e5c6345efab8 (patch)
tree27462e625a85629992fda011133d406442c47cd1 /sql/examples
parent1f9f122928eeb29c429ef3293bff25fa6bcbf4b2 (diff)
parent0154ae5443f272ea0915ec47581167f6aa37cb15 (diff)
downloadmariadb-git-f1ecbe624d61f2203b104a54e826e5c6345efab8.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);
}