summaryrefslogtreecommitdiff
path: root/mysql-test/suite/mariabackup/include/show_xtrabackup_slave_info_out.inc
blob: 90b2d00b61db04c895b6bee5805950c72835bc60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--disable_query_log
--file_exists $XTRABACKUP_OUT
CREATE TEMPORARY TABLE tmp_slave_info_out(lineno SERIAL, line TEXT);
--replace_result $targetdir TARGETDIR
--eval LOAD DATA LOCAL INFILE '$XTRABACKUP_OUT' INTO TABLE tmp_slave_info_out (line);
SELECT
  replace(
  regexp_replace(
  regexp_replace(line,
                '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]',
                'YYYY-MM-DD hh:mm:ss'),
                '[0-9]+-[0-9]+-[0-9]+', '<NUM-NUM-NUM>'),
                '\r','' /* Remove CR on Windows */)
                 AS line
FROM tmp_slave_info_out
WHERE line LIKE '%MySQL slave binlog position%'
   OR line LIKE '%Failed to get master binlog coordinates%'
ORDER BY lineno;
DROP TEMPORARY TABLE tmp_slave_info_out;
--enable_query_log