Commit 89f28a77 authored by Magnus Svensson's avatar Magnus Svensson

Bug#41061 analyze-warnings times out sporadically in pushbuild

parent aeb6b5af
...@@ -218,6 +218,8 @@ INSERT INTO global_suppressions VALUES ...@@ -218,6 +218,8 @@ INSERT INTO global_suppressions VALUES
-- --
CREATE DEFINER=root@localhost PROCEDURE check_warnings(OUT result INT) CREATE DEFINER=root@localhost PROCEDURE check_warnings(OUT result INT)
BEGIN BEGIN
DECLARE `text` text charset utf8;
DECLARE `pos` bigint unsigned;
-- Don't write these queries to binlog -- Don't write these queries to binlog
SET SQL_LOG_BIN=0; SET SQL_LOG_BIN=0;
...@@ -234,15 +236,17 @@ BEGIN ...@@ -234,15 +236,17 @@ BEGIN
WHERE variable_name='LOG_ERROR'; WHERE variable_name='LOG_ERROR';
SET @@session.max_allowed_packet= 1024*1024*1024; SET @@session.max_allowed_packet= 1024*1024*1024;
SET @text= load_file(@log_error); SET text= load_file(@log_error);
-- select @text; -- select text;
WHILE LOCATE('\n', @text) DO SET pos= LOCATE('\n', text);
WHILE pos DO
INSERT error_log (line) INSERT error_log (line)
VALUES ( VALUES (
SUBSTR(@text, 1, LOCATE('\n', @text)-1) SUBSTR(text, 1, pos-1)
); );
SET @text= SUBSTR(@text FROM LOCATE('\n', @text)+1); SET text= SUBSTR(text FROM pos+1);
SET pos= LOCATE('\n', text);
END WHILE; END WHILE;
-- select * from error_log; -- select * from error_log;
...@@ -287,6 +291,7 @@ BEGIN ...@@ -287,6 +291,7 @@ BEGIN
-- Cleanup for next test -- Cleanup for next test
TRUNCATE test_suppressions; TRUNCATE test_suppressions;
DROP TABLE error_log, suspect_lines;
END|| END||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment