Commit 0122a138 authored by Rohit Kalhans's avatar Rohit Kalhans

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.  
parent c01c37a7
...@@ -524,9 +524,31 @@ call p_verify_status_increment(2, 2, 2, 2); ...@@ -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'`)
commit; {
call p_verify_status_increment(2, 2, 1, 0); --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;
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 ...@@ -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
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment