diff options
author | unknown <brian@zim.(none)> | 2005-09-07 10:43:22 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2005-09-07 10:43:22 -0700 |
commit | 7c69d4a31154f1f07d6450c9109f9f146d1a1742 (patch) | |
tree | 46d64af7431c181abd0d0145863f0f6ae205a8f7 /sql/examples | |
parent | e8ba23fd0d1ca9b5f3a1366419f8351280b473bc (diff) | |
parent | 1ac26b4a6cfd5cf72b39e4fda31d2bb114463ad8 (diff) | |
download | mariadb-git-7c69d4a31154f1f07d6450c9109f9f146d1a1742.tar.gz |
Merge zim.(none):/home/brian/mysql/mysql-4.1
into zim.(none):/home/brian/mysql/mysql-5.0
sql/examples/ha_tina.cc:
Auto merged
Diffstat (limited to 'sql/examples')
-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); |