mirror of
https://github.com/MariaDB/server.git
synced 2025-08-24 14:48:09 +03:00
With statement- or mixed-mode logging, "LOAD DATA INFILE" queries are written to the binlog using special types of log events. When mysqlbinlog reads such events, it re-creates the file in a temporary directory with a generated filename and outputs a "LOAD DATA INFILE" query where the filename is replaced by the generated file. The temporary file is not deleted by mysqlbinlog after termination. To fix the problem, in mixed mode we go to row-based. In SBR, we document it to remind user the tmpfile is left in a temporary directory.
16 lines
501 B
Plaintext
16 lines
501 B
Plaintext
#
|
|
# Bug #34283 mysqlbinlog leaves tmpfile after termination
|
|
# if binlog contains load data infile, so in mixed mode we
|
|
# go to row-based for avoiding the problem.
|
|
#
|
|
|
|
--source include/have_binlog_format_mixed.inc
|
|
--source include/have_log_bin.inc
|
|
|
|
RESET MASTER;
|
|
CREATE TABLE t1 (word CHAR(20) NOT NULL) ENGINE=MYISAM;
|
|
let $binlog_start= query_get_value(SHOW MASTER STATUS, Position, 1);
|
|
LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE t1;
|
|
--source include/show_binlog_events.inc
|
|
DROP TABLE t1;
|