List:Commits« Previous MessageNext Message »
From:Dao-Gang.Qu Date:November 5 2009 5:24am
Subject:bzr commit into mysql-5.1-bugteam branch (Dao-Gang.Qu:3192) Bug#43913
View as plain text  
#At file:///home/daogangqu/mysql/bzrwork/bug43913/mysql-5.1-bugteam/ based on revid:davi.arnaut@stripped

 3192 Dao-Gang.Qu@stripped	2009-11-05
      Bug #43913  	rpl_cross_version can't pass on conflicts complainig clash with --slave-load-tm
      
      The 'slave_patternload_file' is assigned to the real path of the load data file 
      when initializing the object of Relay_log_info. But the path of the load data
      file is not formatted to real path when loading event from binary log. So the 
      error will be encountered if the path of the load data file is a symbolic link.
      
      To fix the error, the path of the load data file should be formatted to 
      real path when loading event from binary log.

    modified:
      sql/sql_load.cc
=== modified file 'sql/sql_load.cc'
--- a/sql/sql_load.cc	2009-10-27 15:15:53 +0000
+++ b/sql/sql_load.cc	2009-11-05 05:24:10 +0000
@@ -304,7 +304,8 @@ int mysql_load(THD *thd,sql_exchange *ex
     else
     {
       (void) fn_format(name, ex->file_name, mysql_real_data_home, "",
-		       MY_RELATIVE_PATH | MY_UNPACK_FILENAME);
+		       MY_RELATIVE_PATH | MY_UNPACK_FILENAME | 
+                       MY_RETURN_REAL_PATH);
 #if !defined(__WIN__) && ! defined(__NETWARE__)
       MY_STAT stat_info;
       if (!my_stat(name,&stat_info,MYF(MY_WME)))


Attachment: [text/bzr-bundle] bzr/dao-gang.qu@sun.com-20091105052410-5dajcaurw1x73w3z.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (Dao-Gang.Qu:3192) Bug#43913Dao-Gang.Qu5 Nov