~percona-dev/percona-server/5.1.57-partially-ported

« back to all changes in this revision

Viewing changes to query_cache_enhance.patch

  • Committer: Oleg Tsarev
  • Date: 2011-05-10 00:07:01 UTC
  • Revision ID: oleg.tsarev@percona.com-20110510000701-l08jx5er0g8ogi6w
Patches ported to 5.1.57
ATTENTION, ATTENTION, ATTENTION
!!!
Some parts of innodb_split_buf_pool_mutex.patch was removed (for apply another patches)
You should revert changes in this commit from patch and do their right

!!! 
innodb_lru_dump_restore.patch has some changes, what should be reviewed

!!!
mysql-test.diff - I removed part for "mysql-test/include/mtr_warnings.sql", should be restored and fixed

All other looks fine.

UNFORTUNATELY, MYSQL DOESN'T BUILD (Compilation error in InnoDB).

ATTENTION, ATTENTION, ATTENTION

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
diff -ruN a/sql/mysqld.cc b/sql/mysqld.cc
27
27
--- a/sql/mysqld.cc     2010-07-28 16:47:41.134069529 +0400
28
28
+++ b/sql/mysqld.cc     2010-07-28 16:47:41.704071184 +0400
29
 
@@ -525,6 +525,7 @@
 
29
@@ -526,6 +526,7 @@
30
30
 my_bool opt_log_slow_slave_statements= 0;
31
31
 my_bool opt_log_slow_sp_statements= 0;
32
32
 my_bool opt_log_slow_timestamp_every= 0;
34
34
 my_bool opt_use_global_long_query_time= 0;
35
35
 my_bool opt_slow_query_log_microseconds_timestamp= 0;
36
36
 my_bool lower_case_file_system= 0;
37
 
@@ -5892,6 +5893,7 @@
 
37
@@ -5898,6 +5899,7 @@
38
38
   OPT_THREAD_STATISTICS,
39
39
   OPT_OPTIMIZER_FIX,
40
40
   OPT_SUPPRESS_LOG_WARNING_1592,
42
42
   OPT_USE_GLOBAL_LONG_QUERY_TIME,
43
43
   OPT_USE_GLOBAL_LOG_SLOW_CONTROL,
44
44
   OPT_SLOW_QUERY_LOG_MICROSECONDS_TIMESTAMP,
45
 
@@ -6946,6 +6948,10 @@
 
45
@@ -6953,6 +6955,10 @@
46
46
   {"use_global_log_slow_control", OPT_USE_GLOBAL_LOG_SLOW_CONTROL,
47
47
     "Choose flags, wich always use the global variables. Multiple flags allowed in a comma-separated string. [none, log_slow_filter, log_slow_rate_limit, log_slow_verbosity, long_query_time, min_examined_row_limit, all]",
48
48
    0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, SLOG_UG_NONE, 0, 0},
56
56
diff -ruN a/sql/mysql_priv.h b/sql/mysql_priv.h
57
57
--- a/sql/mysql_priv.h  2010-07-28 16:47:41.144071083 +0400
58
58
+++ b/sql/mysql_priv.h  2010-07-28 16:47:41.714068826 +0400
59
 
@@ -2113,6 +2113,7 @@
 
59
@@ -2118,6 +2118,7 @@
60
60
 extern my_bool opt_log_slow_admin_statements, opt_log_slow_slave_statements;
61
61
 extern my_bool opt_log_slow_sp_statements;
62
62
 extern my_bool opt_log_slow_timestamp_every;
119
119
 static void fix_myisam_max_sort_file_size(THD *thd, enum_var_type type);
120
120
 static void fix_max_binlog_size(THD *thd, enum_var_type type);
121
121
 static void fix_max_relay_log_size(THD *thd, enum_var_type type);
122
 
@@ -571,9 +573,6 @@
 
122
@@ -581,9 +583,6 @@
123
123
                                               &SV::div_precincrement);
124
124
 static sys_var_long_ptr        sys_rpl_recovery_rank(&vars, "rpl_recovery_rank",
125
125
                                              &rpl_recovery_rank);
129
129
 
130
130
 static sys_var_thd_ulong       sys_range_alloc_block_size(&vars, "range_alloc_block_size",
131
131
                                                   &SV::range_alloc_block_size);
132
 
@@ -639,14 +638,20 @@
 
132
@@ -649,14 +648,20 @@
133
133
                                             NULL);
134
134
 
135
135
 #ifdef HAVE_QUERY_CACHE
155
155
 static sys_var_thd_bool
156
156
 sys_query_cache_wlock_invalidate(&vars, "query_cache_wlock_invalidate",
157
157
                                 &SV::query_cache_wlock_invalidate);
158
 
@@ -930,6 +935,8 @@
 
158
@@ -940,6 +945,8 @@
159
159
 #ifndef EMBEDDED_LIBRARY
160
160
 static sys_var_const_str_ptr    sys_repl_report_host(&vars, "report_host", &report_host);
161
161
 static sys_var_const_str_ptr    sys_repl_report_user(&vars, "report_user", &report_user);
164
164
 static sys_var_const_str_ptr    sys_repl_report_password(&vars, "report_password", &report_password);
165
165
 
166
166
 static uchar *slave_get_report_port(THD *thd)
167
 
@@ -1240,10 +1247,9 @@
 
167
@@ -1250,10 +1257,9 @@
168
168
 {}
169
169
 #endif /* HAVE_REPLICATION */
170
170
 
176
176
   ulong new_cache_size= query_cache.resize(query_cache_size);
177
177
 
178
178
   /*
179
 
@@ -1257,11 +1263,35 @@
 
179
@@ -1267,11 +1273,35 @@
180
180
                        query_cache_size, new_cache_size);
181
181
   
182
182
   query_cache_size= new_cache_size;
214
214
 static void fix_query_cache_min_res_unit(THD *thd, enum_var_type type)
215
215
 {
216
216
   query_cache_min_res_unit= 
217
 
@@ -3619,6 +3649,16 @@
 
217
@@ -3629,6 +3659,16 @@
218
218
   Functions to handle SET mysql_internal_variable=const_expr
219
219
 *****************************************************************************/
220
220