summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <dlenev@mysql.com>2003-08-20 03:38:31 +0400
committerunknown <dlenev@mysql.com>2003-08-20 03:38:31 +0400
commite3541b8a97f74f4dbdbe8a34b445106e3cefdcc4 (patch)
tree0a3c8f9aa8f5e896442645fcead2090909683c4f /mysql-test
parentd43a347db179f4601465debc3bfd3cfbb87d1528 (diff)
downloadmariadb-git-e3541b8a97f74f4dbdbe8a34b445106e3cefdcc4.tar.gz
Fix for BUG#1086. Now we don't preserve event's log_pos through
log-slave-updates since this causes unexpected values in Exec_master_log_pos in A->B->C replication setup, synchronization problems in master_pos_wait()... Still this brokes some functionality in sql/repl_failsafe.cc (but this file is not used now) mysql-test/r/rpl_log.result: SHOW BINLOG EVENTS for binlog on slave should give the same Orig_log_pos and Pos values sql/log_event.cc: Do not propagate our master's log pos to our bin log sql/repl_failsafe.cc: Added comment about broken SHOW NEW MASTER sql/slave.cc: Do not propagate our master's log pos to our bin log sql/sql_class.cc: THD::log_pos is no longer needed sql/sql_class.h: THD::log_pos is no longer needed sql/sql_parse.cc: Added comment about broken SHOW NEW MASTER
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/rpl_log.result12
1 files changed, 6 insertions, 6 deletions
diff --git a/mysql-test/r/rpl_log.result b/mysql-test/r/rpl_log.result
index 2798d1a9fab..fbec0542e4b 100644
--- a/mysql-test/r/rpl_log.result
+++ b/mysql-test/r/rpl_log.result
@@ -85,15 +85,15 @@ slave-bin.001 263 Query 1 263 use test; drop table t1
slave-bin.001 311 Query 1 311 use test; create table t1 (word char(20) not null)
slave-bin.001 386 Create_file 1 386 db=test;table=t1;file_id=1;block_len=581
slave-bin.001 1065 Exec_load 1 1056 ;file_id=1
-slave-bin.001 1088 Query 1 1079 use test; drop table t1
-slave-bin.001 1136 Query 1 4 use test; create table t5 (a int)
-slave-bin.001 1194 Query 1 62 use test; drop table t5
+slave-bin.001 1088 Query 1 1088 use test; drop table t1
+slave-bin.001 1136 Query 1 1136 use test; create table t5 (a int)
+slave-bin.001 1194 Query 1 1194 use test; drop table t5
slave-bin.001 1242 Rotate 2 1242 slave-bin.002;pos=4
show binlog events in 'slave-bin.002' from 4;
Log_name Pos Event_type Server_id Orig_log_pos Info
-slave-bin.002 4 Query 1 110 use test; create table t1 (n int)
-slave-bin.002 62 Query 1 168 use test; insert into t1 values (1)
-slave-bin.002 122 Query 1 228 use test; drop table t1
+slave-bin.002 4 Query 1 4 use test; create table t1 (n int)
+slave-bin.002 62 Query 1 62 use test; insert into t1 values (1)
+slave-bin.002 122 Query 1 122 use test; drop table t1
show slave status;
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
127.0.0.1 root MASTER_PORT 1 master-bin.002 276 slave-relay-bin.003 211 master-bin.002 Yes Yes 0 0 276 211