1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-8554: Server crashes in base_list_iterator::next_fast ...

THD::>save_prep_leaf_list was set to true by multi-table update
statements with mergeable selects and never reset.

Make every statement reset it at start.
This commit is contained in:
Sergei Petrunia
2015-07-30 22:08:39 +03:00
parent 17a4a39c15
commit 877de3af28
3 changed files with 38 additions and 0 deletions

View File

@@ -5653,6 +5653,8 @@ void THD::reset_for_next_command()
thd->reset_current_stmt_binlog_format_row();
thd->binlog_unsafe_warning_flags= 0;
thd->save_prep_leaf_list= false;
DBUG_PRINT("debug",
("is_current_stmt_binlog_format_row(): %d",
thd->is_current_stmt_binlog_format_row()));