Skip to content

Commit

Permalink
Merge pull request #889 from laurynas-biveinis/bug1616404-5.7
Browse files Browse the repository at this point in the history
Bug1616404 5.7
  • Loading branch information
laurynas-biveinis committed Aug 25, 2016
2 parents 11dfefa + 398e24b commit 6b94432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ SELECT * FROM performance_schema.setup_instruments
WHERE name like "%wait/io/table/sql/handler%";
NAME ENABLED TIMED
wait/io/table/sql/handler YES YES
#
# Stop server
# Restart server with wait/io/table/sql/handler disabled
# Enable reconnect
# Wait until connected again
# Disable reconnect
# restart:--loose-performance-schema-instrument='%wait/io/table/sql/%=off'
#
# Verify that wait/io/table is disabled
#
Expand Down
24 changes: 2 additions & 22 deletions mysql-test/suite/perfschema/t/setup_instruments_defaults.test
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,8 @@ SHOW VARIABLES LIKE "%/wait/synch/mutex%";
SELECT * FROM performance_schema.setup_instruments
WHERE name like "%wait/io/table/sql/handler%";

# Write file to make mysql-test-run.pl wait for the server to stop
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect

# Restart the server
--echo #
--echo # Stop server
--send_shutdown
--echo # Restart server with wait/io/table/sql/handler disabled

--exec echo "restart:--loose-performance-schema-instrument='%wait/io/table/sql/%=off'" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect

# Turn on reconnect
--echo # Enable reconnect
--enable_reconnect

# Wait for server to be back online again
--echo # Wait until connected again
--source include/wait_until_connected_again.inc

# Turn off reconnect again
--echo # Disable reconnect
--disable_reconnect
--let $restart_parameters= restart:--loose-performance-schema-instrument='%wait/io/table/sql/%=off'
--source include/restart_mysqld.inc

--echo #
--echo # Verify that wait/io/table is disabled
Expand Down

0 comments on commit 6b94432

Please sign in to comment.