BUG#11758262 BUG#13043055:
Fix for commit_1innodb failure on pb2. Background: as status increment differs for an unsafe statement when logged in stmt and row format, mtr throws a content mismatch error. Fix: call p_verify_status_increment with different arguments for loging format as stmt and row/mixed and disable query log.
This commit is contained in:
parent
c01c37a7ef
commit
0122a138e4
@ -524,9 +524,31 @@ call p_verify_status_increment(2, 2, 2, 2);
|
|||||||
--disable_warnings
|
--disable_warnings
|
||||||
update ignore t1 set a=2 where a=1;
|
update ignore t1 set a=2 where a=1;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
call p_verify_status_increment(2, 2, 1, 0);
|
if (`select @@binlog_format = 'STATEMENT'`)
|
||||||
|
{
|
||||||
|
--disable_query_log
|
||||||
|
call p_verify_status_increment(2, 2, 1, 0);
|
||||||
|
--enable_query_log
|
||||||
|
}
|
||||||
|
if (`select @@binlog_format != 'STATEMENT'`)
|
||||||
|
{
|
||||||
|
--disable_query_log
|
||||||
|
call p_verify_status_increment(1, 0, 1, 0);
|
||||||
|
--enable_query_log
|
||||||
|
}
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(2, 2, 1, 0);
|
if (`select @@binlog_format = 'STATEMENT'`)
|
||||||
|
{
|
||||||
|
--disable_query_log
|
||||||
|
call p_verify_status_increment(2, 2, 1, 0);
|
||||||
|
--enable_query_log
|
||||||
|
}
|
||||||
|
if (`select @@binlog_format != 'STATEMENT'`)
|
||||||
|
{
|
||||||
|
--disable_query_log
|
||||||
|
call p_verify_status_increment(1, 0, 1, 0);
|
||||||
|
--enable_query_log
|
||||||
|
}
|
||||||
--echo #
|
--echo #
|
||||||
--echo # Create a stored function that modifies a
|
--echo # Create a stored function that modifies a
|
||||||
--echo # non-transactional table. Demonstrate that changes in
|
--echo # non-transactional table. Demonstrate that changes in
|
||||||
|
@ -549,11 +549,9 @@ SUCCESS
|
|||||||
# 15. Read-write statement: UPDATE IGNORE, change 0 rows.
|
# 15. Read-write statement: UPDATE IGNORE, change 0 rows.
|
||||||
#
|
#
|
||||||
update ignore t1 set a=2 where a=1;
|
update ignore t1 set a=2 where a=1;
|
||||||
call p_verify_status_increment(2, 2, 1, 0);
|
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(2, 2, 1, 0);
|
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user