[Commits] Rev 3359: Fixed bug mdev-464. in file:///home/igor/maria/maria-5.5-mwl248/

Igor Babaev igor at askmonty.org
Fri Aug 17 23:23:49 EEST 2012


At file:///home/igor/maria/maria-5.5-mwl248/

------------------------------------------------------------
revno: 3359
revision-id: igor at askmonty.org-20120817202349-fec5oke7he6c1fxn
parent: igor at askmonty.org-20120814194214-bc5hme0t1qeewrmj
committer: Igor Babaev <igor at askmonty.org>
branch nick: maria-5.5-mwl248
timestamp: Fri 2012-08-17 13:23:49 -0700
message:
  Fixed bug mdev-464.
  The value of system variable use_stat_tables was always reset to 0 ('never') 
  by mistake at the launch of the server.
-------------- next part --------------
=== modified file 'mysql-test/r/stat_tables.result'
--- a/mysql-test/r/stat_tables.result	2012-07-28 00:33:23 +0000
+++ b/mysql-test/r/stat_tables.result	2012-08-17 20:23:49 +0000
@@ -1,3 +1,9 @@
+select @@global.use_stat_tables;
+@@global.use_stat_tables
+COMPLEMENTARY
+select @@session.use_stat_tables;
+@@session.use_stat_tables
+COMPLEMENTARY
 set @save_use_stat_tables=@@use_stat_tables;
 set use_stat_tables='preferably';
 DROP DATABASE IF EXISTS dbt3_s001;

=== modified file 'mysql-test/r/stat_tables_innodb.result'
--- a/mysql-test/r/stat_tables_innodb.result	2012-07-28 00:33:23 +0000
+++ b/mysql-test/r/stat_tables_innodb.result	2012-08-17 20:23:49 +0000
@@ -1,6 +1,12 @@
 SET SESSION STORAGE_ENGINE='InnoDB';
 set @save_optimizer_switch_for_stat_tables_test=@@optimizer_switch;
 set optimizer_switch='extended_keys=on';
+select @@global.use_stat_tables;
+@@global.use_stat_tables
+COMPLEMENTARY
+select @@session.use_stat_tables;
+@@session.use_stat_tables
+COMPLEMENTARY
 set @save_use_stat_tables=@@use_stat_tables;
 set use_stat_tables='preferably';
 DROP DATABASE IF EXISTS dbt3_s001;

=== modified file 'mysql-test/t/stat_tables.test'
--- a/mysql-test/t/stat_tables.test	2012-07-28 00:33:23 +0000
+++ b/mysql-test/t/stat_tables.test	2012-08-17 20:23:49 +0000
@@ -1,5 +1,8 @@
 --source include/have_stat_tables.inc
 
+select @@global.use_stat_tables;
+select @@session.use_stat_tables;
+
 set @save_use_stat_tables=@@use_stat_tables;
 
 set use_stat_tables='preferably';

=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2012-08-14 19:42:14 +0000
+++ b/sql/mysqld.cc	2012-08-17 20:23:49 +0000
@@ -3752,8 +3752,6 @@
   global_system_variables.character_set_results= default_charset_info;
   global_system_variables.character_set_client=  default_charset_info;
 
-  global_system_variables.use_stat_tables= 0;
- 
   if (!(character_set_filesystem=
         get_charset_by_csname(character_set_filesystem_name,
                               MY_CS_PRIMARY, MYF(MY_WME))))



More information about the commits mailing list