From 96dc37365020778b0091e2f6bc685040786d0cd4 Mon Sep 17 00:00:00 2001 From: "kent@mysql.com" <> Date: Thu, 25 Aug 2005 01:02:40 +0200 Subject: ha_tina.cc: Some lack madvice() --- sql/examples/ha_tina.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/examples') 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); } -- cgit v1.2.1