diff options
author | unknown <sasha@mysql.sashanet.com> | 2002-01-19 19:16:52 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2002-01-19 19:16:52 -0700 |
commit | 5df61c3cdc4499197e420a76b25b942dce0f3ccc (patch) | |
tree | 87da2fd65f79c28f4b97c4619f95b07797107d82 /mysql-test/r/rpl_log.result | |
parent | 0831ce1c616296196eff82065da469156b4def82 (diff) | |
download | mariadb-git-5df61c3cdc4499197e420a76b25b942dce0f3ccc.tar.gz |
Here comes a nasty patch, although I am not ready to push it yet. I will
first pull, merge,test, and get it to work.
The main change is the new replication code - now we have two slave threads
SQL thread and I/O thread. I have also re-written a lot of the code to
prepare for multi-master implementation.
I also documented IO_CACHE quite extensively and to some extend, THD class.
Makefile.am:
moved tags target script into a separate file
include/my_sys.h:
fixes in IO_CACHE for SEQ_READ_APPEND + some documentation
libmysqld/lib_sql.cc:
updated replication locks, but now I see I did it wrong and it won't compile. Will fix
before the push.
mysql-test/r/rpl000014.result:
test result update
mysql-test/r/rpl000015.result:
test result update
mysql-test/r/rpl000016.result:
test result update
mysql-test/r/rpl_log.result:
test result update
mysql-test/t/rpl000016-slave.sh:
remove relay logs
mysql-test/t/rpl000017-slave.sh:
remove relay logs
mysql-test/t/rpl_log.test:
updated test
mysys/mf_iocache.c:
IO_CACHE updates to make replication work
mysys/mf_iocache2.c:
IO_CACHE update to make replication work
mysys/thr_mutex.c:
cosmetic change
sql/item_func.cc:
new replication code
sql/lex.h:
new replication
sql/log.cc:
new replication
sql/log_event.cc:
new replication
sql/log_event.h:
new replication
sql/mini_client.cc:
new replication
sql/mini_client.h:
new replication
sql/mysql_priv.h:
new replication
sql/mysqld.cc:
new replication
sql/repl_failsafe.cc:
new replication
sql/slave.cc:
new replication
sql/slave.h:
new replication
sql/sql_class.cc:
new replication
sql/sql_class.h:
new replication
sql/sql_lex.h:
new replication
sql/sql_parse.cc:
new replication
sql/sql_repl.cc:
new replication
sql/sql_repl.h:
new replication
sql/sql_show.cc:
new replication
sql/sql_yacc.yy:
new replication
sql/stacktrace.c:
more robust stack tracing
sql/structs.h:
new replication code
BitKeeper/etc/ignore:
Added mysql-test/r/rpl000002.eval mysql-test/r/rpl000014.eval mysql-test/r/rpl000015.eval mysql-test/r/rpl000016.eval mysql-test/r/slave-running.eval mysql-test/r/slave-stopped.eval to the ignore list
Diffstat (limited to 'mysql-test/r/rpl_log.result')
-rw-r--r-- | mysql-test/r/rpl_log.result | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/mysql-test/r/rpl_log.result b/mysql-test/r/rpl_log.result index 27a19f49874..4e6588d39f2 100644 --- a/mysql-test/r/rpl_log.result +++ b/mysql-test/r/rpl_log.result @@ -15,48 +15,48 @@ create table t1 (word char(20) not null); load data infile '../../std_data/words.dat' into table t1; drop table t1; show binlog events; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.001 4 Start 1 1 Server ver: $VERSION, Binlog ver: 2 -master-bin.001 79 Query 1 2 use test; create table t1(n int not null auto_increment primary key) -master-bin.001 172 Intvar 1 3 INSERT_ID=1 -master-bin.001 200 Query 1 4 use test; insert into t1 values (NULL) -master-bin.001 263 Query 1 5 use test; drop table t1 -master-bin.001 311 Query 1 6 use test; create table t1 (word char(20) not null) -master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81 -master-bin.001 556 Exec_load 1 8 ;file_id=1 -master-bin.001 579 Query 1 9 use test; drop table t1 +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.001 4 Start 1 4 Server ver: 4.0.1-alpha-debug-log, Binlog ver: 3 +master-bin.001 79 Query 1 79 use test; create table t1(n int not null auto_increment primary key) +master-bin.001 172 Intvar 1 172 INSERT_ID=1 +master-bin.001 200 Query 1 200 use test; insert into t1 values (NULL) +master-bin.001 263 Query 1 263 use test; drop table t1 +master-bin.001 311 Query 1 311 use test; create table t1 (word char(20) not null) +master-bin.001 386 Create_file 1 386 db=test;table=t1;file_id=1;block_len=81 +master-bin.001 556 Exec_load 1 556 ;file_id=1 +master-bin.001 579 Query 1 579 use test; drop table t1 show binlog events from 79 limit 1; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.001 79 Query 1 2 use test; create table t1(n int not null auto_increment primary key) +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.001 79 Query 1 79 use test; create table t1(n int not null auto_increment primary key) show binlog events from 79 limit 2; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.001 79 Query 1 2 use test; create table t1(n int not null auto_increment primary key) -master-bin.001 172 Intvar 1 3 INSERT_ID=1 +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.001 79 Query 1 79 use test; create table t1(n int not null auto_increment primary key) +master-bin.001 172 Intvar 1 172 INSERT_ID=1 show binlog events from 79 limit 2,1; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.001 200 Query 1 4 use test; insert into t1 values (NULL) +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.001 200 Query 1 200 use test; insert into t1 values (NULL) flush logs; create table t1 (n int); insert into t1 values (1); drop table t1; show binlog events; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.001 4 Start 1 1 Server ver: $VERSION, Binlog ver: 2 -master-bin.001 79 Query 1 2 use test; create table t1(n int not null auto_increment primary key) -master-bin.001 172 Intvar 1 3 INSERT_ID=1 -master-bin.001 200 Query 1 4 use test; insert into t1 values (NULL) -master-bin.001 263 Query 1 5 use test; drop table t1 -master-bin.001 311 Query 1 6 use test; create table t1 (word char(20) not null) -master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81 -master-bin.001 556 Exec_load 1 8 ;file_id=1 -master-bin.001 579 Query 1 9 use test; drop table t1 -master-bin.001 627 Rotate 1 10 master-bin.002;pos=4 -master-bin.001 668 Stop 1 11 +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.001 4 Start 1 4 Server ver: 4.0.1-alpha-debug-log, Binlog ver: 3 +master-bin.001 79 Query 1 79 use test; create table t1(n int not null auto_increment primary key) +master-bin.001 172 Intvar 1 172 INSERT_ID=1 +master-bin.001 200 Query 1 200 use test; insert into t1 values (NULL) +master-bin.001 263 Query 1 263 use test; drop table t1 +master-bin.001 311 Query 1 311 use test; create table t1 (word char(20) not null) +master-bin.001 386 Create_file 1 386 db=test;table=t1;file_id=1;block_len=81 +master-bin.001 556 Exec_load 1 556 ;file_id=1 +master-bin.001 579 Query 1 579 use test; drop table t1 +master-bin.001 627 Rotate 1 627 master-bin.002;pos=4 +master-bin.001 668 Stop 1 668 show binlog events in 'master-bin.002'; -Log_name Pos Event_type Server_id Log_seq Info -master-bin.002 4 Query 1 1 use test; create table t1 (n int) -master-bin.002 62 Query 1 2 use test; insert into t1 values (1) -master-bin.002 122 Query 1 3 use test; drop table t1 +Log_name Pos Event_type Server_id Orig_log_pos Info +master-bin.002 4 Query 1 4 use test; create table t1 (n int) +master-bin.002 62 Query 1 62 use test; insert into t1 values (1) +master-bin.002 122 Query 1 122 use test; drop table t1 show master logs; Log_name master-bin.001 @@ -67,45 +67,45 @@ Log_name slave-bin.001 slave-bin.002 show binlog events in 'slave-bin.001' from 4; -Log_name Pos Event_type Server_id Log_seq Info -slave-bin.001 4 Start 2 1 Server ver: $VERSION, Binlog ver: 2 -slave-bin.001 79 Slave 2 3 host=127.0.0.1,port=$MASTER_MYPORT,log=master-bin.001,pos=4 -slave-bin.001 132 Query 1 2 use test; create table t1(n int not null auto_increment primary key) -slave-bin.001 225 Intvar 1 3 INSERT_ID=1 -slave-bin.001 253 Query 1 4 use test; insert into t1 values (NULL) -slave-bin.001 316 Query 1 5 use test; drop table t1 -slave-bin.001 364 Query 1 6 use test; create table t1 (word char(20) not null) -slave-bin.001 439 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81 -slave-bin.001 618 Exec_load 1 8 ;file_id=1 -slave-bin.001 641 Query 1 9 use test; drop table t1 -slave-bin.001 689 Rotate 1 4 slave-bin.002;pos=4; forced by master -slave-bin.001 729 Stop 2 5 +Log_name Pos Event_type Server_id Orig_log_pos Info +slave-bin.001 4 Start 2 4 Server ver: 4.0.1-alpha-debug-log, Binlog ver: 3 +slave-bin.001 79 Slave 2 79 host=127.0.0.1,port=9306,log=master-bin.001,pos=4 +slave-bin.001 132 Query 1 79 use test; create table t1(n int not null auto_increment primary key) +slave-bin.001 225 Intvar 1 200 INSERT_ID=1 +slave-bin.001 253 Query 1 200 use test; insert into t1 values (NULL) +slave-bin.001 316 Query 1 263 use test; drop table t1 +slave-bin.001 364 Query 1 311 use test; create table t1 (word char(20) not null) +slave-bin.001 439 Create_file 1 386 db=test;table=t1;file_id=1;block_len=81 +slave-bin.001 618 Exec_load 1 556 ;file_id=1 +slave-bin.001 641 Query 1 579 use test; drop table t1 +slave-bin.001 689 Rotate 1 627 slave-bin.002;pos=4; forced by master +slave-bin.001 729 Stop 2 729 show binlog events in 'slave-bin.002' from 4; -Log_name Pos Event_type Server_id Log_seq Info -slave-bin.002 4 Slave 2 10 host=127.0.0.1,port=$MASTER_MYPORT,log=master-bin.002,pos=4 -slave-bin.002 57 Query 1 1 use test; create table t1 (n int) -slave-bin.002 115 Query 1 2 use test; insert into t1 values (1) -slave-bin.002 175 Query 1 3 use test; drop table t1 +Log_name Pos Event_type Server_id Orig_log_pos Info +slave-bin.002 4 Slave 2 627 host=127.0.0.1,port=9306,log=master-bin.002,pos=4 +slave-bin.002 57 Query 1 4 use test; create table t1 (n int) +slave-bin.002 115 Query 1 62 use test; insert into t1 values (1) +slave-bin.002 175 Query 1 122 use test; drop table t1 show slave status; -Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq -127.0.0.1 root $MASTER_MYPORT 1 master-bin.002 170 Yes 0 0 3 +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 +127.0.0.1 root 9306 1 master-bin.002 170 mysql-relay-bin.002 935 master-bin.002 Yes Yes 0 0 170 show new master for slave with master_log_file='master-bin.001' and -master_log_pos=4 and master_log_seq=1 and master_server_id=1; +master_log_pos=4 and master_server_id=1; Log_name Log_pos slave-bin.001 132 show new master for slave with master_log_file='master-bin.001' and -master_log_pos=79 and master_log_seq=2 and master_server_id=1; +master_log_pos=79 and master_server_id=1; Log_name Log_pos slave-bin.001 225 show new master for slave with master_log_file='master-bin.001' and -master_log_pos=311 and master_log_seq=6 and master_server_id=1; +master_log_pos=311 and master_server_id=1; Log_name Log_pos slave-bin.001 439 show new master for slave with master_log_file='master-bin.002' and -master_log_pos=4 and master_log_seq=1 and master_server_id=1; +master_log_pos=4 and master_server_id=1; Log_name Log_pos slave-bin.002 57 show new master for slave with master_log_file='master-bin.002' and -master_log_pos=137 and master_log_seq=3 and master_server_id=1; +master_log_pos=122 and master_server_id=1; Log_name Log_pos slave-bin.002 223 |