diff options
author | ndbdev@dl145b.mysql.com <> | 2005-09-09 15:26:47 +0200 |
---|---|---|
committer | ndbdev@dl145b.mysql.com <> | 2005-09-09 15:26:47 +0200 |
commit | 46cc62e216e72f51bf82c283082996cbc2ce2eb5 (patch) | |
tree | 8b8e4544543c49e86d358196df4f951aa55502dd /sql/examples | |
parent | beedf0eb9b8f940347b3ca7de50ea0400444cc42 (diff) | |
parent | 39efb8c865bcfb7eb29824f6140e713fe61a229b (diff) | |
download | mariadb-git-46cc62e216e72f51bf82c283082996cbc2ce2eb5.tar.gz |
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0
into dl145b.mysql.com:/home/ndbdev/tomas/mysql-5.1
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 a336a4379bd..3a9302483b4 100644 --- a/sql/examples/ha_tina.cc +++ b/sql/examples/ha_tina.cc @@ -652,7 +652,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); |