Commit afadc5c
committed
Bug#35308309 : Prepare exec invalid variable assertion error
Description:
------------
Server exits abruptly when we try to set the read
only variable INNODB_PURGE_THREADS.
Analysis:
---------
While setting a read-only variable using the SET
command, mysqld checks if the variable is read
only and then errors out with a proper error
message. This is missing when we set the same read
only variable using PREPARED STATEMENTS. So, the
INNODB_PURGE_THREADS is successfully modified and
it leads to this unexpected behaviour.
Fix:
----
Added the check to error out from setting the read
only variables when it is from PREPARED STATEMENT.
Change-Id: I4a41ab4ae42d6e5867ef383671e9444cb044da8f1 parent 29ca8dc commit afadc5c
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1667 | 1667 | | |
1668 | 1668 | | |
1669 | 1669 | | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1670 | 1683 | | |
1671 | 1684 | | |
1672 | 1685 | | |
| |||
0 commit comments