Skip to content

Commit b1d77ce

Browse files
author
Christopher Powers
committed
Bug#21847100 HANDLER ROLLBACK VARIABLE VALUE FOR DELTA AND HOST DIFFERS IN PS AND IS
MTR invokes preliminary checks that affect the starting value of the status counters. These status counts differ between I_S and P_S because of the different code paths taken for SHOW commands. The testcase measures only the status count deltas, not the starting values. To avoid any discrepancies, between I_S and P_S, the test now performs FLUSH STATUS to clear beginning status counts.
1 parent cb608f0 commit b1d77ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mysql-test/suite/perfschema/t/show_aggregate.test

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ SET @@session.sql_log_bin=OFF;
2626
--echo # CREATE 3 CLIENTS, 3 CONNECTIONS, RESULTS TABLE
2727
connection default;
2828
USE test;
29+
30+
# Clear user, host and account status accumulated from preliminary checks by mtr.
31+
--disable_query_log
32+
flush status;
33+
--enable_query_log
34+
2935
--echo
3036
--echo # Create results table
3137
CREATE TABLE test.status_results

0 commit comments

Comments
 (0)