Skip to content

Commit 0912fbb

Browse files
committed
MDEV-11719 main.subselect_no_exists_to_in failed in buildbot
main.log_slow might leave mysql.slow_log table non-empty, and tests which later use it might fail. Make sure that the table is properly truncated
1 parent 2718225 commit 0912fbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mysql-test/r/log_slow.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ sleep(0.5)
6767
select count(*) FROM mysql.slow_log;
6868
count(*)
6969
1
70-
truncate mysql.slow_log;
7170
set @@long_query_time=default;
7271
set global slow_query_log= @org_slow_query_log;
7372
set @@log_slow_filter=default;
7473
set @@log_slow_verbosity=default;
7574
set global log_output= default;
75+
truncate mysql.slow_log;

mysql-test/t/log_slow.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ set global slow_query_log=1;
5050
set global log_output='TABLE';
5151
select sleep(0.5);
5252
select count(*) FROM mysql.slow_log;
53-
truncate mysql.slow_log;
5453

5554
# Reset used variables
5655
set @@long_query_time=default;
5756
set global slow_query_log= @org_slow_query_log;
5857
set @@log_slow_filter=default;
5958
set @@log_slow_verbosity=default;
6059
set global log_output= default;
60+
truncate mysql.slow_log;

0 commit comments

Comments
 (0)