mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Merge zim.(none):/home/brian/mysql/mysql-4.1
into zim.(none):/home/brian/mysql/mysql-5.0
This commit is contained in:
commit
d15e92dc98
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue