-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-27239 Spider: Assertion `thd->transaction->stmt.ha_list == __nul…
…l || trans == &thd->transaction->stmt' failed in ha_commit_trans on BEGIN WORK after FTWRL The check on the SQL command type, in ha_spider::external_lock() is deleted by e954d9d. This resulted in the wrong call of spider_internal_start_trx() (and thus Ha_trx_info::register_ha()). I reverted the check and refactored ha_spider::external_lock().
- Loading branch information
1 parent
6645b1d
commit d8463b6
Showing
4 changed files
with
105 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
storage/spider/mysql-test/spider/bugfix/r/mdev_27239.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# MDEV-27239 Spider: Assertion `thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt' failed in ha_commit_trans on BEGIN WORK after FTWRL | ||
# | ||
for master_1 | ||
for child2 | ||
for child3 | ||
CREATE DATABASE auto_test_local; | ||
USE auto_test_local; | ||
CREATE TABLE tbl_a (a INT) ENGINE=SPIDER; | ||
FLUSH TABLE tbl_a WITH READ LOCK; | ||
Warnings: | ||
Error 1429 Unable to connect to foreign data source: localhost | ||
Error 1429 Unable to connect to foreign data source: localhost | ||
Error 1429 Unable to connect to foreign data source: localhost | ||
Error 1429 Unable to connect to foreign data source: localhost | ||
BEGIN; | ||
DROP DATABASE auto_test_local; | ||
for master_1 | ||
for child2 | ||
for child3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!include include/default_mysqld.cnf | ||
!include ../my_1_1.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--echo # | ||
--echo # MDEV-27239 Spider: Assertion `thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt' failed in ha_commit_trans on BEGIN WORK after FTWRL | ||
--echo # | ||
|
||
--disable_query_log | ||
--disable_result_log | ||
--source ../../t/test_init.inc | ||
--enable_result_log | ||
--enable_query_log | ||
|
||
CREATE DATABASE auto_test_local; | ||
USE auto_test_local; | ||
|
||
CREATE TABLE tbl_a (a INT) ENGINE=SPIDER; | ||
FLUSH TABLE tbl_a WITH READ LOCK; | ||
BEGIN; | ||
|
||
DROP DATABASE auto_test_local; | ||
|
||
--disable_query_log | ||
--disable_result_log | ||
--source ../../t/test_deinit.inc | ||
--enable_result_log | ||
--enable_query_log |