components/mysql-5-1/patches/xO4_optimization.patch
author Jiri Sasek <Jiri.Sasek@Sun.COM>
Wed, 20 Mar 2013 08:56:48 -0700
branchs11-update
changeset 2525 5e4049097207
parent 444 a2a87847a213
permissions -rw-r--r--
16103575 Update Samba to 3.6.12 release. 15813281 SUNBT7195246 After Samba patch 119757-25/119758-25: Files not deleted, smbs 16299853 problem in UTILITY/SAMBA 16443813 Build noise in vfs_samfs caused by a missing prototype 16294231 "smbd" is frequently dumping core in AIO with SAM-FS involved. 16395062 "smbd" is not closing stale Samba connections with SAM-FS involved.

--- sql/sql_select.cc	2009-07-13 16:12:07.000000000 -0700
+++ sql/sql_select.cc.studio	2009-12-02 03:27:24.449272132 -0800
@@ -82,6 +82,7 @@
 		      double record_count,double read_time);
 static uint cache_record_length(JOIN *join,uint index);
 static double prev_record_reads(JOIN *join, uint idx, table_map found_ref);
+#pragma opt 2 (prev_record_reads)
 static bool get_best_combination(JOIN *join);
 static store_key *get_store_key(THD *thd,
 				KEYUSE *keyuse, table_map used_tables,