Bug #59267 | LOAD DATA LOCAL INFILE not executed on slave with SBR | ||
---|---|---|---|
Submitted: | 4 Jan 2011 3:43 | Modified: | 9 Feb 2011 21:14 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.5.9 | OS: | Windows |
Assigned to: | Alfranio Tavares Correia Junior | CPU Architecture: | Any |
Tags: | regression |
[4 Jan 2011 3:43]
Elena Stepanova
[10 Jan 2011 8:44]
Kristofer Pettersson
I agree with the analysis. The original patch was written for 5.1 and during up merge I got the endif misplaced. There might be another issue as well: * From 5.1: [..] my_error(ER_TEXTFILE_NOT_READABLE, MYF(0), name); DBUG_RETURN(TRUE); } if ((stat_info.st_mode & S_IFIFO) == S_IFIFO) is_fifo = 1; #endif if ((file=my_open(name,O_RDONLY,MYF(MY_WME))) < 0) DBUG_RETURN(TRUE); [..] * And from 5.5: [..] my_error(ER_TEXTFILE_NOT_READABLE, MYF(0), name); DBUG_RETURN(TRUE); } if ((file= mysql_file_open(key_file_load, name, O_RDONLY, MYF(MY_WME))) < 0) #endif DBUG_RETURN(TRUE); [..] As you see it seems is_fifo is never set if for rad_info(..) further down. This probably also got lost during up merge. Could you please investigate if this statement is needed in the new patch: if ((stat_info.st_mode & S_IFIFO) == S_IFIFO) is_fifo = 1; I also think we also need a test case like the one suggested in the bug report. The whole purpose of the risky rearrangement of code was to be able to have reliable test cases on both windows and linux.
[28 Jan 2011 13:01]
Jon Stephens
Since this issue did not appear in an actual release, no changelog entry is needed. Closed without further action.
[8 Feb 2011 14:09]
Bugs System
Pushed into mysql-5.5 5.5.10 (revid:jonathan.perkin@oracle.com-20110208140736-1173xnoipufbhowh) (version source revid:jonathan.perkin@oracle.com-20110208135903-jhzy6wq16b2fx7pg) (merge vers: 5.5.10) (pib:24)
[8 Feb 2011 16:45]
Bugs System
Pushed into mysql-trunk 5.6.2 (revid:georgi.kodinov@oracle.com-20110208155412-tfy4l5hqxi0g7o41) (version source revid:georgi.kodinov@oracle.com-20110208154951-gzqgr74u4bndswi8) (merge vers: 5.6.2) (pib:24)
[9 Feb 2011 21:14]
Jon Stephens
re-closing; see my previous comment.