diff options
author | brian@zim.(none) <> | 2005-09-07 10:43:22 -0700 |
---|---|---|
committer | brian@zim.(none) <> | 2005-09-07 10:43:22 -0700 |
commit | d15e92dc980fec578bfb047e53f759430fe6fe1a (patch) | |
tree | 46d64af7431c181abd0d0145863f0f6ae205a8f7 | |
parent | d261e1f5c5bec78f8fa0ea87a793e3846d449dcc (diff) | |
parent | 8a5c24536c774789a956db3a91782206c4e85b7b (diff) | |
download | mariadb-git-d15e92dc980fec578bfb047e53f759430fe6fe1a.tar.gz |
Merge zim.(none):/home/brian/mysql/mysql-4.1
into zim.(none):/home/brian/mysql/mysql-5.0
-rw-r--r-- | sql/examples/ha_tina.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc index 74ff3457cd2..5c3cbdcf2ca 100644 --- a/sql/examples/ha_tina.cc +++ b/sql/examples/ha_tina.cc @@ -651,7 +651,8 @@ int ha_tina::rnd_init(bool scan) records= 0; chain_ptr= chain; #ifdef HAVE_MADVISE - (void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL); + if (scan) + (void)madvise(share->mapped_file,share->file_stat.st_size,MADV_SEQUENTIAL); #endif DBUG_RETURN(0); |