From: Marc Alff Date: February 9 2011 3:25pm Subject: bzr push into mysql-trunk branch (marc.alff:3625) List-Archive: http://lists.mysql.com/commits/130892 Message-Id: <201102091526.p19EJePD012862@acsinet15.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3625 Marc Alff 2011-02-09 [merge] local merge modified: client/readline.cc support-files/mysql.spec.sh === added file 'mysql-test/suite/perfschema/r/all_tests.result' --- a/mysql-test/suite/perfschema/r/all_tests.result 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/r/all_tests.result 2011-02-09 15:22:04 +0000 @@ -0,0 +1,21 @@ +drop table if exists t1; +drop table if exists t2; +create table t1 (test_name text); +create table t2 (test_name text); +load data infile "MYSQLTEST_VARDIR/tmp/perfschema-all_tests.txt" into table t1; +insert into t2 select concat('ddl_', table_name, '.test') from information_schema.tables +where table_schema='performance_schema'; +insert into t2 select concat('dml_', table_name, '.test') from information_schema.tables +where table_schema='performance_schema'; +update t2 set test_name= replace(test_name, "events_waits_summary_", "ews_"); +update t2 set test_name= replace(test_name, "events_stages_summary_", "esgs_"); +update t2 set test_name= replace(test_name, "events_statements_summary_", "esms_"); +update t2 set test_name= replace(test_name, "file_summary_", "fs_"); +update t2 set test_name= replace(test_name, "objects_summary_", "os_"); +update t2 set test_name= replace(test_name, "table_io_waits_summary_", "tiws_"); +update t2 set test_name= replace(test_name, "table_lock_waits_summary_", "tlws_"); +delete from t2 where t2.test_name in (select t1.test_name from t1); +select test_name as `MISSING DDL/DML TESTS` from t2; +MISSING DDL/DML TESTS +drop table t1; +drop table t2; === added file 'mysql-test/suite/perfschema/r/ddl_threads.result' --- a/mysql-test/suite/perfschema/r/ddl_threads.result 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/r/ddl_threads.result 2011-02-09 15:22:04 +0000 @@ -0,0 +1,8 @@ +alter table performance_schema.threads add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.threads; +ERROR HY000: Invalid performance_schema usage. +ALTER TABLE performance_schema.threads ADD INDEX test_index(PROCESSLIST_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.threads(PROCESSLIST_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' === removed file 'mysql-test/suite/perfschema/r/dml_file_summary_by_event_name.result' --- a/mysql-test/suite/perfschema/r/dml_file_summary_by_event_name.result 2010-12-01 18:46:51 +0000 +++ b/mysql-test/suite/perfschema/r/dml_file_summary_by_event_name.result 1970-01-01 00:00:00 +0000 @@ -1,25 +0,0 @@ -select * from performance_schema.file_summary_by_event_name -where event_name like 'Wait/io/%' limit 1; -select * from performance_schema.file_summary_by_event_name -where event_name='FOO'; -insert into performance_schema.file_summary_by_event_name -set event_name='FOO', count_read=1, count_write=2, -sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; -ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -update performance_schema.file_summary_by_event_name -set count_read=12; -ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -update performance_schema.file_summary_by_event_name -set count_write=12 where event_name like "FOO"; -ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -delete from performance_schema.file_summary_by_event_name -where count_read=1; -ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -delete from performance_schema.file_summary_by_event_name; -ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -LOCK TABLES performance_schema.file_summary_by_event_name READ; -ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -UNLOCK TABLES; -LOCK TABLES performance_schema.file_summary_by_event_name WRITE; -ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' -UNLOCK TABLES; === removed file 'mysql-test/suite/perfschema/r/dml_file_summary_by_instance.result' --- a/mysql-test/suite/perfschema/r/dml_file_summary_by_instance.result 2010-12-01 18:46:51 +0000 +++ b/mysql-test/suite/perfschema/r/dml_file_summary_by_instance.result 1970-01-01 00:00:00 +0000 @@ -1,25 +0,0 @@ -select * from performance_schema.file_summary_by_instance -where event_name like 'Wait/io/%' limit 1; -select * from performance_schema.file_summary_by_instance -where event_name='FOO'; -insert into performance_schema.file_summary_by_instance -set event_name='FOO', count_read=1, count_write=2, -sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; -ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -update performance_schema.file_summary_by_instance -set count_read=12; -ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -update performance_schema.file_summary_by_instance -set count_write=12 where event_name like "FOO"; -ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -delete from performance_schema.file_summary_by_instance -where count_read=1; -ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -delete from performance_schema.file_summary_by_instance; -ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -LOCK TABLES performance_schema.file_summary_by_instance READ; -ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -UNLOCK TABLES; -LOCK TABLES performance_schema.file_summary_by_instance WRITE; -ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' -UNLOCK TABLES; === added file 'mysql-test/suite/perfschema/r/dml_fs_by_event_name.result' --- a/mysql-test/suite/perfschema/r/dml_fs_by_event_name.result 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/r/dml_fs_by_event_name.result 2011-02-09 15:22:04 +0000 @@ -0,0 +1,25 @@ +select * from performance_schema.file_summary_by_event_name +where event_name like 'Wait/io/%' limit 1; +select * from performance_schema.file_summary_by_event_name +where event_name='FOO'; +insert into performance_schema.file_summary_by_event_name +set event_name='FOO', count_read=1, count_write=2, +sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +update performance_schema.file_summary_by_event_name +set count_read=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +update performance_schema.file_summary_by_event_name +set count_write=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +delete from performance_schema.file_summary_by_event_name +where count_read=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +delete from performance_schema.file_summary_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +LOCK TABLES performance_schema.file_summary_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +UNLOCK TABLES; +LOCK TABLES performance_schema.file_summary_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' +UNLOCK TABLES; === added file 'mysql-test/suite/perfschema/r/dml_fs_by_instance.result' --- a/mysql-test/suite/perfschema/r/dml_fs_by_instance.result 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/r/dml_fs_by_instance.result 2011-02-09 15:22:04 +0000 @@ -0,0 +1,25 @@ +select * from performance_schema.file_summary_by_instance +where event_name like 'Wait/io/%' limit 1; +select * from performance_schema.file_summary_by_instance +where event_name='FOO'; +insert into performance_schema.file_summary_by_instance +set event_name='FOO', count_read=1, count_write=2, +sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +update performance_schema.file_summary_by_instance +set count_read=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +update performance_schema.file_summary_by_instance +set count_write=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +delete from performance_schema.file_summary_by_instance +where count_read=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +delete from performance_schema.file_summary_by_instance; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +LOCK TABLES performance_schema.file_summary_by_instance READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +UNLOCK TABLES; +LOCK TABLES performance_schema.file_summary_by_instance WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' +UNLOCK TABLES; === added file 'mysql-test/suite/perfschema/t/all_tests.test' --- a/mysql-test/suite/perfschema/t/all_tests.test 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/t/all_tests.test 2011-02-09 15:22:04 +0000 @@ -0,0 +1,78 @@ +# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA + +--source include/not_embedded.inc + +# +# Test based on mysql-test/suite/sys_vars/all_vars.test, +# and adapted for the performance schema tables. +# +# This test verifies that *all* performance schema tables are tested +# by the perfschema test suite. +# In particular, every table there must be covered by: +# - a ddl_.test file. +# - a dml_.test file. +# + +# +# we can diff in perl or in sql, as it's my_SQL_test suite, do it in sql +# + +perl; + use File::Basename; + my $dirname=dirname($ENV{MYSQLTEST_FILE}); + my @all_tests=<$dirname/*.test>; + open(F, '>', "$ENV{MYSQLTEST_VARDIR}/tmp/perfschema-all_tests.txt") or die; + binmode F; + print F join "\n", sort map { basename $_ } @all_tests; +EOF + +--disable_warnings +drop table if exists t1; +drop table if exists t2; +--enable_warnings + +create table t1 (test_name text); +create table t2 (test_name text); +--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR +eval load data infile "$MYSQLTEST_VARDIR/tmp/perfschema-all_tests.txt" into table t1; + +insert into t2 select concat('ddl_', table_name, '.test') from information_schema.tables + where table_schema='performance_schema'; +insert into t2 select concat('dml_', table_name, '.test') from information_schema.tables + where table_schema='performance_schema'; + +# Abbreviations used for naming test files: +update t2 set test_name= replace(test_name, "events_waits_summary_", "ews_"); +update t2 set test_name= replace(test_name, "events_stages_summary_", "esgs_"); +update t2 set test_name= replace(test_name, "events_statements_summary_", "esms_"); +update t2 set test_name= replace(test_name, "file_summary_", "fs_"); +update t2 set test_name= replace(test_name, "objects_summary_", "os_"); +update t2 set test_name= replace(test_name, "table_io_waits_summary_", "tiws_"); +update t2 set test_name= replace(test_name, "table_lock_waits_summary_", "tlws_"); + +# Debug +# select test_name as 'FOUND' from t1; +# select test_name as 'EXPECTED' from t2; + +delete from t2 where t2.test_name in (select t1.test_name from t1); + +# If this fails, the test listed in the output is missing from the test suite. +# The way to fix the failure is to implement the missing test, not silence this select. +select test_name as `MISSING DDL/DML TESTS` from t2; + +drop table t1; +drop table t2; + === added file 'mysql-test/suite/perfschema/t/ddl_threads.test' --- a/mysql-test/suite/perfschema/t/ddl_threads.test 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/t/ddl_threads.test 2011-02-09 15:22:04 +0000 @@ -0,0 +1,32 @@ +# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA + +# Tests for PERFORMANCE_SCHEMA + +--source include/not_embedded.inc +--source include/have_perfschema.inc + +-- error ER_DBACCESS_DENIED_ERROR +alter table performance_schema.threads add column foo integer; + +-- error ER_WRONG_PERFSCHEMA_USAGE +truncate table performance_schema.threads; + +-- error ER_DBACCESS_DENIED_ERROR +ALTER TABLE performance_schema.threads ADD INDEX test_index(PROCESSLIST_ID); + +-- error ER_DBACCESS_DENIED_ERROR +CREATE UNIQUE INDEX test_index ON performance_schema.threads(PROCESSLIST_ID); + === removed file 'mysql-test/suite/perfschema/t/dml_file_summary_by_event_name.test' --- a/mysql-test/suite/perfschema/t/dml_file_summary_by_event_name.test 2010-12-01 18:46:51 +0000 +++ b/mysql-test/suite/perfschema/t/dml_file_summary_by_event_name.test 1970-01-01 00:00:00 +0000 @@ -1,56 +0,0 @@ -# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA - -# Tests for PERFORMANCE_SCHEMA - ---source include/not_embedded.inc ---source include/have_perfschema.inc - ---disable_result_log -select * from performance_schema.file_summary_by_event_name - where event_name like 'Wait/io/%' limit 1; - -select * from performance_schema.file_summary_by_event_name - where event_name='FOO'; ---enable_result_log - ---error ER_TABLEACCESS_DENIED_ERROR -insert into performance_schema.file_summary_by_event_name - set event_name='FOO', count_read=1, count_write=2, - sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; - ---error ER_TABLEACCESS_DENIED_ERROR -update performance_schema.file_summary_by_event_name - set count_read=12; - ---error ER_TABLEACCESS_DENIED_ERROR -update performance_schema.file_summary_by_event_name - set count_write=12 where event_name like "FOO"; - ---error ER_TABLEACCESS_DENIED_ERROR -delete from performance_schema.file_summary_by_event_name - where count_read=1; - ---error ER_TABLEACCESS_DENIED_ERROR -delete from performance_schema.file_summary_by_event_name; - --- error ER_TABLEACCESS_DENIED_ERROR -LOCK TABLES performance_schema.file_summary_by_event_name READ; -UNLOCK TABLES; - --- error ER_TABLEACCESS_DENIED_ERROR -LOCK TABLES performance_schema.file_summary_by_event_name WRITE; -UNLOCK TABLES; - === removed file 'mysql-test/suite/perfschema/t/dml_file_summary_by_instance.test' --- a/mysql-test/suite/perfschema/t/dml_file_summary_by_instance.test 2010-12-01 18:46:51 +0000 +++ b/mysql-test/suite/perfschema/t/dml_file_summary_by_instance.test 1970-01-01 00:00:00 +0000 @@ -1,56 +0,0 @@ -# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA - -# Tests for PERFORMANCE_SCHEMA - ---source include/not_embedded.inc ---source include/have_perfschema.inc - ---disable_result_log -select * from performance_schema.file_summary_by_instance - where event_name like 'Wait/io/%' limit 1; - -select * from performance_schema.file_summary_by_instance - where event_name='FOO'; ---enable_result_log - ---error ER_TABLEACCESS_DENIED_ERROR -insert into performance_schema.file_summary_by_instance - set event_name='FOO', count_read=1, count_write=2, - sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; - ---error ER_TABLEACCESS_DENIED_ERROR -update performance_schema.file_summary_by_instance - set count_read=12; - ---error ER_TABLEACCESS_DENIED_ERROR -update performance_schema.file_summary_by_instance - set count_write=12 where event_name like "FOO"; - ---error ER_TABLEACCESS_DENIED_ERROR -delete from performance_schema.file_summary_by_instance - where count_read=1; - ---error ER_TABLEACCESS_DENIED_ERROR -delete from performance_schema.file_summary_by_instance; - --- error ER_TABLEACCESS_DENIED_ERROR -LOCK TABLES performance_schema.file_summary_by_instance READ; -UNLOCK TABLES; - --- error ER_TABLEACCESS_DENIED_ERROR -LOCK TABLES performance_schema.file_summary_by_instance WRITE; -UNLOCK TABLES; - === added file 'mysql-test/suite/perfschema/t/dml_fs_by_event_name.test' --- a/mysql-test/suite/perfschema/t/dml_fs_by_event_name.test 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/t/dml_fs_by_event_name.test 2011-02-09 15:22:04 +0000 @@ -0,0 +1,56 @@ +# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA + +# Tests for PERFORMANCE_SCHEMA + +--source include/not_embedded.inc +--source include/have_perfschema.inc + +--disable_result_log +select * from performance_schema.file_summary_by_event_name + where event_name like 'Wait/io/%' limit 1; + +select * from performance_schema.file_summary_by_event_name + where event_name='FOO'; +--enable_result_log + +--error ER_TABLEACCESS_DENIED_ERROR +insert into performance_schema.file_summary_by_event_name + set event_name='FOO', count_read=1, count_write=2, + sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; + +--error ER_TABLEACCESS_DENIED_ERROR +update performance_schema.file_summary_by_event_name + set count_read=12; + +--error ER_TABLEACCESS_DENIED_ERROR +update performance_schema.file_summary_by_event_name + set count_write=12 where event_name like "FOO"; + +--error ER_TABLEACCESS_DENIED_ERROR +delete from performance_schema.file_summary_by_event_name + where count_read=1; + +--error ER_TABLEACCESS_DENIED_ERROR +delete from performance_schema.file_summary_by_event_name; + +-- error ER_TABLEACCESS_DENIED_ERROR +LOCK TABLES performance_schema.file_summary_by_event_name READ; +UNLOCK TABLES; + +-- error ER_TABLEACCESS_DENIED_ERROR +LOCK TABLES performance_schema.file_summary_by_event_name WRITE; +UNLOCK TABLES; + === added file 'mysql-test/suite/perfschema/t/dml_fs_by_instance.test' --- a/mysql-test/suite/perfschema/t/dml_fs_by_instance.test 1970-01-01 00:00:00 +0000 +++ b/mysql-test/suite/perfschema/t/dml_fs_by_instance.test 2011-02-09 15:22:04 +0000 @@ -0,0 +1,56 @@ +# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA + +# Tests for PERFORMANCE_SCHEMA + +--source include/not_embedded.inc +--source include/have_perfschema.inc + +--disable_result_log +select * from performance_schema.file_summary_by_instance + where event_name like 'Wait/io/%' limit 1; + +select * from performance_schema.file_summary_by_instance + where event_name='FOO'; +--enable_result_log + +--error ER_TABLEACCESS_DENIED_ERROR +insert into performance_schema.file_summary_by_instance + set event_name='FOO', count_read=1, count_write=2, + sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; + +--error ER_TABLEACCESS_DENIED_ERROR +update performance_schema.file_summary_by_instance + set count_read=12; + +--error ER_TABLEACCESS_DENIED_ERROR +update performance_schema.file_summary_by_instance + set count_write=12 where event_name like "FOO"; + +--error ER_TABLEACCESS_DENIED_ERROR +delete from performance_schema.file_summary_by_instance + where count_read=1; + +--error ER_TABLEACCESS_DENIED_ERROR +delete from performance_schema.file_summary_by_instance; + +-- error ER_TABLEACCESS_DENIED_ERROR +LOCK TABLES performance_schema.file_summary_by_instance READ; +UNLOCK TABLES; + +-- error ER_TABLEACCESS_DENIED_ERROR +LOCK TABLES performance_schema.file_summary_by_instance WRITE; +UNLOCK TABLES; + === modified file 'mysql-test/suite/perfschema/t/start_server_no_cond_class-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_cond_class-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_cond_class-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_cond_classes=0 +--loose-enable-performance-schema +--loose-performance_schema_max_cond_classes=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_cond_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_cond_inst-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_cond_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_cond_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_cond_instances=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_file_class-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_file_class-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_file_class-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_file_classes=0 +--loose-enable-performance-schema +--loose-performance_schema_max_file_classes=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_file_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_file_inst-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_file_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_file_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_file_instances=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_mutex_class-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_mutex_class-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_mutex_class-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_mutex_classes=0 +--loose-enable-performance-schema +--loose-performance_schema_max_mutex_classes=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_mutex_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_mutex_inst-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_mutex_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_mutex_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_mutex_instances=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_rwlock_class-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_rwlock_class-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_rwlock_class-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_rwlock_classes=0 +--loose-enable-performance-schema +--loose-performance_schema_max_rwlock_classes=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_rwlock_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_rwlock_inst-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_rwlock_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_rwlock_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_rwlock_instances=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_table_hdl-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_table_hdl-master.opt 2010-05-17 10:05:47 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_table_hdl-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_table_handles=0 +--loose-enable-performance-schema +--loose-performance_schema_max_table_handles=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_table_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_table_inst-master.opt 2010-05-17 10:05:47 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_table_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_table_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_table_instances=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_thread_class-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_thread_class-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_thread_class-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_thread_classes=0 +--loose-enable-performance-schema +--loose-performance_schema_max_thread_classes=0 === modified file 'mysql-test/suite/perfschema/t/start_server_no_thread_inst-master.opt' --- a/mysql-test/suite/perfschema/t/start_server_no_thread_inst-master.opt 2010-01-12 01:47:27 +0000 +++ b/mysql-test/suite/perfschema/t/start_server_no_thread_inst-master.opt 2011-02-09 15:22:04 +0000 @@ -1 +1,2 @@ ---loose-enable-performance-schema --loose-performance_schema_max_thread_instances=0 +--loose-enable-performance-schema +--loose-performance_schema_max_thread_instances=0 === removed file 'storage/perfschema/unittest/stub_server_misc.h.moved' --- a/storage/perfschema/unittest/stub_server_misc.h.moved 2010-12-02 15:05:07 +0000 +++ b/storage/perfschema/unittest/stub_server_misc.h.moved 1970-01-01 00:00:00 +0000 @@ -1,21 +0,0 @@ -/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - -/* - Minimal code to be able to link a unit test. -*/ - -volatile bool ready_to_exit= false; - No bundle (reason: useless for push emails).