#At file:///home/andrei/MySQL/BZR/2a-23May/MERGE/mysql-trunk/ based on revid:andrei.elkin@stripped
3343 Andrei Elkin 2011-03-29 [merge]
merge from local bugfixing branch to local mysql-trunk prior to push
modified:
client/mysqlbinlog.cc
=== modified file 'client/mysqlbinlog.cc'
--- a/client/mysqlbinlog.cc 2011-03-25 15:20:25 +0000
+++ b/client/mysqlbinlog.cc 2011-03-29 13:56:27 +0000
@@ -1681,8 +1681,7 @@ static Exit_status dump_remote_log_entri
*/
ev->register_temp_buf((char *) net->read_pos + 1);
}
- if (glob_description_event->binlog_version >= 3 ||
- (type != LOAD_EVENT && type != CREATE_FILE_EVENT))
+ if (raw_mode || (type != LOAD_EVENT))
{
/*
If this is a Rotate event, maybe it's the end of the requested binlog;
@@ -1771,6 +1770,14 @@ static Exit_status dump_remote_log_entri
ev= 0;
}
}
+
+ if (type == LOAD_EVENT)
+ {
+ DBUG_ASSERT(raw_mode);
+ warning("Attempting to load a remote pre-4.0 binary log that contains "
+ "LOAD DATA INFILE statements. The file will not be copied from "
+ "the remote server. ");
+ }
if (raw_mode)
{
Attachment: [text/bzr-bundle] bzr/andrei.elkin@oracle.com-20110329135627-38g5qdq7ndx855b5.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk branch (andrei.elkin:3343) | Andrei Elkin | 29 Mar |