Below is the list of changes that have just been committed into a local
5.0 repository of iggy. When iggy does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2008-03-07 15:45:40-05:00, iggy@amd64.(none) +1 -0
Bug #27101 mysqlhotcopy --record_log_pos retrieves wrong slave parameters
- Make sure mysqlhotcopy doesn't create unrestorable slaves.
scripts/mysqlhotcopy.sh@stripped, 2008-03-07 15:45:38-05:00, iggy@amd64.(none) +5 -4
Bug #27101 mysqlhotcopy --record_log_pos retrieves wrong slave parameters
- Record what's been executed by the slave, not what's been delivered.
diff -Nrup a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
--- a/scripts/mysqlhotcopy.sh 2008-02-22 19:04:27 -05:00
+++ b/scripts/mysqlhotcopy.sh 2008-03-07 15:45:38 -05:00
@@ -733,7 +733,7 @@ sub record_log_pos {
= @{$row_hash}{ qw / Master_Host Log_File Pos / };
} else {
($master_host, $log_file, $log_pos )
- = @{$row_hash}{ qw / Master_Host Master_Log_File Read_Master_Log_Pos / };
+ = @{$row_hash}{ qw / Master_Host Relay_Master_Log_File Exec_Master_Log_Pos / };
}
my $hostname = hostname();
@@ -836,9 +836,10 @@ log-pos-table from the values returned f
log_file and log_pos columns, and establish the position in the binary
logs that any slaves of this host should adopt if initialised from
this dump. The slave status values are stored in master_host,
-master_log_file, and master_log_pos, and these are useful if the host
-performing the dump is a slave and other sibling slaves are to be
-initialised from this dump.
+master_log_file, and master_log_pos, corresponding to the coordinates
+of the next to the last event the slave has executed. The slave or its
+siblings can connect to the master next time and request replication
+starting from the recorded values.
The name of the log-pos table should be supplied in database.table format.
A sample log-pos table definition:
| Thread |
|---|
| • bk commit into 5.0 tree (iggy:1.2581) BUG#27101 | Ignacio Galarza | 7 Mar |