mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-10045: Server crashes in Time_and_counter_tracker::incr_loops
Do not set 'optimized' flag until whole optimization procedure is finished.
This commit is contained in:
parent
7d115e73b8
commit
00d84eada2
1 changed files with 1 additions and 0 deletions
|
@ -1073,6 +1073,7 @@ JOIN::optimize_inner()
|
|||
DBUG_ENTER("JOIN::optimize");
|
||||
|
||||
do_send_rows = (unit->select_limit_cnt) ? 1 : 0;
|
||||
|
||||
DEBUG_SYNC(thd, "before_join_optimize");
|
||||
|
||||
THD_STAGE_INFO(thd, stage_optimizing);
|
||||
|
|
Loading…
Reference in a new issue