mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
branches/5.1:
Check whether *trx->mysql_query_str is != NULL in addition to trx->mysql_query_str. This adds more safety. This may or may not fix Bug#35226 RBR event crashes slave.
This commit is contained in:
parent
be05f50a34
commit
ad25389eae
1 changed files with 3 additions and 1 deletions
|
@ -3577,7 +3577,9 @@ shortcut_fails_too_big_rec:
|
|||
|
||||
if (trx->isolation_level <= TRX_ISO_READ_COMMITTED
|
||||
&& prebuilt->select_lock_type != LOCK_NONE
|
||||
&& trx->mysql_query_str && trx->mysql_thd) {
|
||||
&& trx->mysql_query_str != NULL
|
||||
&& *trx->mysql_query_str != NULL
|
||||
&& trx->mysql_thd != NULL) {
|
||||
|
||||
/* Scan the MySQL query string; check if SELECT is the first
|
||||
word there */
|
||||
|
|
Loading…
Add table
Reference in a new issue