List:Internals« Previous MessageNext Message »
From:Mikael Fridh Date:March 10 2005 11:12am
Subject:Re: bk commit into 4.0 tree (mats:1.2074) BUG#8368
View as plain text  
Hi,

Mats Kindahl wrote:
> ChangeSet
>   1.2074 05/03/08 18:05:19 mats@stripped +2 -0
>   Bug#8368: Added --slave-data option to mysqldump that will allow a
>   slave to be cloned.  The option will append a CHANGE MASTER statement
>   to the output with the host, port, log file, and log pos of the slave.
> +	  for (f = 0 ; f < slave->field_count ; ++f)
> +	  {
> +	    if (strcmp(slave->fields[f].name, "Master_Host") == 0)
> +	      host_idx = f;
> +	    else if (strcmp(slave->fields[f].name, "Master_Port") == 0)
> +	      port_idx = f;
> +	    else if (strcmp(slave->fields[f].name, "Master_Log_File") == 0)
> +	      log_file_idx = f;
> +	    else if (strcmp(slave->fields[f].name, "Exec_master_log_pos") == 0)
> +	      log_pos_idx = f;
> +	  }

Shouldn't this be Relay_Master_Log_File instead of Master_Log_File?

I probably fooled you in my original patch idea by using the wrong field.

btw, will this reach the 4.1 tree if it's accepted in 4.0 review?

-- 
  ___
|K  | Ongame E-Solutions AB - www.ongame.com
| /\| Mikael Fridh / Technical Operations
|_\/| tel: +46 18 606 538 / fax: +46 18 694 411
Thread
bk commit into 4.0 tree (mats:1.2074) BUG#8368Mats Kindahl8 Mar
  • Re: bk commit into 4.0 tree (mats:1.2074) BUG#8368Mikael Fridh10 Mar
    • Re: bk commit into 4.0 tree (mats:1.2074) BUG#8368Mats Kindahl10 Mar