mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
write "COMMIT" into binlog if there's no Xid at the end of transaction
new tests mysql-test/r/innodb.result: savepoint test mysql-test/t/innodb.test: savepoint test sql/log.cc: write "COMMIT" into binlog if there's no Xid at the end of transaction
This commit is contained in:
22
mysql-test/r/binlog.result
Normal file
22
mysql-test/r/binlog.result
Normal file
@@ -0,0 +1,22 @@
|
||||
drop table if exists t1, t2;
|
||||
create table t1 (a int) engine=bdb;
|
||||
create table t2 (a int) engine=innodb;
|
||||
begin;
|
||||
insert t1 values (5);
|
||||
commit;
|
||||
begin;
|
||||
insert t2 values (5);
|
||||
commit;
|
||||
show binlog events from 96;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 96 Query 1 187 use `test`; drop table if exists t1, t2
|
||||
master-bin.000001 187 Query 1 285 use `test`; create table t1 (a int) engine=bdb
|
||||
master-bin.000001 285 Query 1 386 use `test`; create table t2 (a int) engine=innodb
|
||||
master-bin.000001 386 Query 1 455 use `test`; BEGIN
|
||||
master-bin.000001 455 Query 1 84 use `test`; insert t1 values (5)
|
||||
master-bin.000001 539 Query 1 154 use `test`; COMMIT
|
||||
master-bin.000001 609 Query 1 678 use `test`; BEGIN
|
||||
master-bin.000001 678 Query 1 84 use `test`; insert t2 values (5)
|
||||
master-bin.000001 762 Xid 1 111 COMMIT /* xid=10 */
|
||||
reset master;
|
||||
drop table t1,t2;
|
@@ -272,6 +272,10 @@ n
|
||||
7
|
||||
rollback to savepoint `my_savepoint`;
|
||||
ERROR 42000: SAVEPOINT my_savepoint does not exist
|
||||
insert into t1 values (8);
|
||||
savepoint sv;
|
||||
commit;
|
||||
savepoint sv;
|
||||
set autocommit=1;
|
||||
rollback;
|
||||
drop table t1;
|
||||
@@ -1717,7 +1721,7 @@ Variable_name Value
|
||||
Innodb_rows_deleted 2070
|
||||
show status like "Innodb_rows_inserted";
|
||||
Variable_name Value
|
||||
Innodb_rows_inserted 31708
|
||||
Innodb_rows_inserted 31709
|
||||
show status like "Innodb_rows_updated";
|
||||
Variable_name Value
|
||||
Innodb_rows_updated 29530
|
||||
|
Reference in New Issue
Block a user