1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00
Files
mariadb/mysql-test/suite/innodb/r
Sergei Golubchik 5392b4a32c MDEV-20354 All but last insert ignored in InnoDB tables when table locked
mysql_insert() first opens all affected tables (which implicitly
starts a transaction in InnoDB), then stat tables.
A failure to open a stat table caused open_tables() to abort
the current stmt transaction (trans_rollback_stmt()). So, from the
server point of view the following ha_write_row()-s happened outside
of a transactions, and the server didn't bother to commit them.

The server has a mechanism to prevent a transaction being
unexpectedly committed or rolled back in the middle of a statement -
if an operation takes place _in a sub-statement_ it cannot change
the transaction state. Operations on stat tables are exactly that -
they are not allowed to change a transaction state. Put them in
a sub-statement to make sure they don't.
2019-10-30 23:14:44 +01:00
..
2014-08-02 21:26:16 +02:00
2019-04-24 12:03:11 +03:00
2014-05-06 09:57:39 +02:00
2015-02-18 20:31:40 +01:00
2010-05-26 21:55:40 +03:00
2012-09-27 20:09:46 +02:00
2011-07-02 22:08:51 +02:00
2017-03-24 18:19:15 +02:00
2018-01-29 16:32:59 +02:00
2017-10-24 20:36:03 +03:00
2017-10-24 20:36:03 +03:00
2017-10-24 20:36:03 +03:00
2016-04-26 23:05:26 +02:00
2010-11-25 18:17:28 +01:00
2015-10-23 18:49:02 +03:00
2015-01-21 14:33:39 +01:00
2019-04-26 15:31:31 +03:00