mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
WL#4189 mtr.pl v2
- Suppress intentional safemalloc dump warnings - add fflush(stdout) to make sure that the "End safemalloc memory dump." marker is flushed.
This commit is contained in:
@ -236,6 +236,17 @@ BEGIN
|
||||
SET suspicious=0
|
||||
WHERE el.suspicious=1 AND el.line REGEXP ts.pattern;
|
||||
|
||||
--
|
||||
-- Suppress intentional safemalloc dump warnings
|
||||
-- i.e inside "Begin/End safemalloc memeory dump" block
|
||||
--
|
||||
SELECT @min_row:=row
|
||||
FROM error_log WHERE line = "Begin safemalloc memory dump:";
|
||||
SELECT @max_row:=row
|
||||
FROM error_log WHERE line = "End safemalloc memory dump.";
|
||||
UPDATE error_log SET suspicious=0
|
||||
WHERE suspicious=1 AND row > @min_row AND row < @max_row;
|
||||
|
||||
--
|
||||
-- Get the number of marked lines and return result
|
||||
--
|
||||
|
Reference in New Issue
Block a user