mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
67cc50d2a3
This patch fixes these warnings and some compile time warnings. On top of that, it also fixes rpl_err_ignoredtable test failure. This test was failing because the warning suppression text was not matching the latest text. We fix this by making them match. mysql-test/suite/rpl/t/rpl_err_ignoredtable.test: Replaced the suppression text. sql/rpl_record.cc: - Fixed some compile time warnings (replaced %d --> %ld and removed unused mas mask variable. - Fixed valgrind warnings when using c_ptr(). Replaced with c_ptr_safe(). sql/rpl_utility.cc: - Fixed valgrind warnings when using c_ptr(). Replaced with c_ptr_safe().
42 lines
893 B
Text
42 lines
893 B
Text
stop slave;
|
|
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;
|
|
start slave;
|
|
create table t1 (a int primary key);
|
|
create table t4 (a int primary key);
|
|
insert into t1 values (1),(1);
|
|
Got one of the listed errors
|
|
insert into t4 values (1),(2);
|
|
show tables like 't1';
|
|
Tables_in_test (t1)
|
|
show tables like 't4';
|
|
Tables_in_test (t4)
|
|
t4
|
|
SELECT * FROM test.t4 ORDER BY a;
|
|
a
|
|
1
|
|
2
|
|
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;
|
|
insert into t4 values (3),(4);
|
|
SELECT * FROM test.t4 ORDER BY a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
4
|
|
DROP TABLE test.t4;
|