Skip to content

Commit 26a8a95

Browse files
committed
MDEV-7431 main.log_tables fails sporadically in buildbot
Structure of the table created by the test to archive mysql.slow_log data didn't match the structure of mysql.slow_log. The failure only appeared if the slow_log was not empty, which was very rare. Updated the structure of the table.
1 parent df2db86 commit 26a8a95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mysql-test/r/log_tables.result

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,8 @@ CREATE TABLE `db_17876.slow_log_data` (
536536
`last_insert_id` int(11) default NULL,
537537
`insert_id` int(11) default NULL,
538538
`server_id` int(11) default NULL,
539-
`sql_text` mediumtext
539+
`sql_text` mediumtext,
540+
`thread_id` bigint(21) unsigned default NULL
540541
);
541542
CREATE TABLE `db_17876.general_log_data` (
542543
`event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

mysql-test/t/log_tables.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ CREATE TABLE `db_17876.slow_log_data` (
727727
`last_insert_id` int(11) default NULL,
728728
`insert_id` int(11) default NULL,
729729
`server_id` int(11) default NULL,
730-
`sql_text` mediumtext
730+
`sql_text` mediumtext,
731+
`thread_id` bigint(21) unsigned default NULL
731732
);
732733

733734
CREATE TABLE `db_17876.general_log_data` (

0 commit comments

Comments
 (0)