Commit d3443c8
committed
MDEV-37056 : SIGSEGV in wsrep_check_sequence | mysql_alter_table
Problem was that thd->lex->m_sql_cmd is not always set
especially when user has not provided ENGINE=xxx so
requesting option_storage_engine_name from there is not
safe.
Fixed by accessing thd->lex->m_sql_cmd only when user
has used ENGINE= and if not using ha_default_handlerton
and requesting engine name after it.1 parent 25253b7 commit d3443c8
File tree
3 files changed
+43
-6
lines changed- mysql-test/suite/galera
- r
- t
- sql
3 files changed
+43
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5014 | 5014 | | |
5015 | 5015 | | |
5016 | 5016 | | |
| 5017 | + | |
5017 | 5018 | | |
5018 | 5019 | | |
5019 | 5020 | | |
5020 | 5021 | | |
5021 | 5022 | | |
5022 | 5023 | | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
5023 | 5029 | | |
5024 | 5030 | | |
5025 | 5031 | | |
5026 | 5032 | | |
5027 | 5033 | | |
| 5034 | + | |
5028 | 5035 | | |
5029 | 5036 | | |
5030 | 5037 | | |
5031 | 5038 | | |
5032 | 5039 | | |
5033 | | - | |
5034 | | - | |
5035 | | - | |
5036 | | - | |
5037 | 5040 | | |
5038 | 5041 | | |
5039 | 5042 | | |
5040 | 5043 | | |
5041 | 5044 | | |
5042 | | - | |
| 5045 | + | |
5043 | 5046 | | |
5044 | 5047 | | |
5045 | 5048 | | |
5046 | 5049 | | |
5047 | 5050 | | |
5048 | 5051 | | |
5049 | 5052 | | |
5050 | | - | |
| 5053 | + | |
| 5054 | + | |
5051 | 5055 | | |
5052 | 5056 | | |
5053 | 5057 | | |
| |||
0 commit comments