mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
86ae07cd24
Fixed some wrong column specifications in mysql_fix_privilege_tables mysql-test/mysql-test-run.sh: Portability fix mysql-test/r/func_math.result: portability fix mysql-test/r/rpl_error_ignored_table.result: portability fix mysql-test/t/func_math.test: portability fix mysql-test/t/rpl_error_ignored_table.test: portability fix scripts/mysql_fix_privilege_tables.sh: func.name was not generated correctly scripts/mysql_fix_privilege_tables.sql: Fixed some wrong column specifications
40 lines
1.8 KiB
Text
40 lines
1.8 KiB
Text
slave stop;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
slave start;
|
|
create table t1 (a int primary key);
|
|
insert into t1 values (1),(1);
|
|
Duplicate entry '1' for key 1
|
|
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.001 213 slave-relay-bin.002 254 master-bin.001 Yes Yes 0 0 213 254
|
|
show tables like 't1';
|
|
Tables_in_test (t1)
|
|
drop table t1;
|
|
select get_lock('crash_lock%20C', 10);
|
|
get_lock('crash_lock%20C', 10)
|
|
1
|
|
create table t2 (a int primary key);
|
|
insert into t2 values(1);
|
|
create table t3 (id int);
|
|
insert into t3 values(connection_id());
|
|
update t2 set a = a + 1 + get_lock('crash_lock%20C', 10);
|
|
select (@id := id) - id from t3;
|
|
(@id := id) - id
|
|
0
|
|
kill @id;
|
|
drop table t2,t3;
|
|
Got one of the listed errors
|
|
show binlog events from 79;
|
|
Log_name Pos Event_type Server_id Orig_log_pos Info
|
|
master-bin.001 79 Query 1 79 use `test`; create table t1 (a int primary key)
|
|
master-bin.001 149 Query 1 149 use `test`; insert into t1 values (1),(1)
|
|
master-bin.001 213 Query 1 213 use `test`; drop table t1
|
|
master-bin.001 261 Query 1 261 use `test`; create table t2 (a int primary key)
|
|
master-bin.001 331 Query 1 331 use `test`; insert into t2 values(1)
|
|
master-bin.001 390 Query 1 390 use `test`; create table t3 (id int)
|
|
master-bin.001 449 Query 1 449 use `test`; insert into t3 values(connection_id())
|
|
master-bin.001 522 Query 1 522 use `test`; update t2 set a = a + 1 + get_lock('crash_lock%20C', 10)
|
|
master-bin.001 613 Query 1 613 use `test`; drop table t2,t3
|