Browse Source
Revert MDEV-18464 and MDEV-12009
Revert MDEV-18464 and MDEV-12009
This reverts commitpull/1254/head21b2fada7aand commit81d71ee6b2. The MDEV-18464 change introduces a few data race issues. Contrary to the documentation, the field trx_t::victim is not always being protected by lock_sys_t::mutex and trx_t::mutex. Most importantly, it seems that KILL QUERY could wrongly avoid acquiring both mutexes when invoking lock_trx_handle_wait_low(), in case another thread had already set trx->victim=true. We also revert MDEV-12009, because it should depend on the MDEV-18464 fix being present.
22 changed files with 178 additions and 194 deletions
-
3include/mysql/service_wsrep.h
-
4mysql-test/suite/galera/r/galera_kill_applier.result
-
10mysql-test/suite/galera/t/galera_kill_applier.cnf
-
54mysql-test/suite/galera/t/galera_kill_applier.test
-
14sql/sql_parse.cc
-
3sql/sql_plugin_services.ic
-
3sql/wsrep_dummy.cc
-
1sql/wsrep_mysqld.cc
-
9sql/wsrep_thd.cc
-
2sql/wsrep_thd.h
-
38storage/innobase/handler/ha_innodb.cc
-
19storage/innobase/include/trx0trx.h
-
50storage/innobase/lock/lock0lock.cc
-
4storage/innobase/row/row0sel.cc
-
3storage/innobase/trx/trx0roll.cc
-
8storage/innobase/trx/trx0trx.cc
-
36storage/xtradb/handler/ha_innodb.cc
-
19storage/xtradb/include/trx0trx.h
-
50storage/xtradb/lock/lock0lock.cc
-
4storage/xtradb/row/row0sel.cc
-
21storage/xtradb/trx/trx0roll.cc
-
17storage/xtradb/trx/trx0trx.cc
@ -1,8 +1,4 @@ |
|||
CREATE USER foo@localhost; |
|||
GRANT SELECT on test.* TO foo@localhost; |
|||
# Open connection to the 1st node using 'test_user1' user. |
|||
Got one of the listed errors |
|||
Got one of the listed errors |
|||
Got one of the listed errors |
|||
Got one of the listed errors |
|||
DROP USER foo@localhost; |
|||
@ -1,10 +0,0 @@ |
|||
!include ../galera_2nodes.cnf |
|||
|
|||
[mysqld.1] |
|||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;pc.ignore_sb=true' |
|||
auto_increment_offset=1 |
|||
|
|||
[mysqld.2] |
|||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;pc.ignore_sb=true' |
|||
auto_increment_offset=2 |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue