mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03: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:
@ -1290,7 +1290,8 @@ public:
|
||||
enum join_optimization_state { NOT_OPTIMIZED=0,
|
||||
OPTIMIZATION_IN_PROGRESS=1,
|
||||
OPTIMIZATION_DONE=2};
|
||||
bool optimized; ///< flag to avoid double optimization in EXPLAIN
|
||||
// state of JOIN optimization
|
||||
enum join_optimization_state optimization_state;
|
||||
bool initialized; ///< flag to avoid double init_execution calls
|
||||
|
||||
Explain_select *explain;
|
||||
@ -1378,7 +1379,7 @@ public:
|
||||
ref_pointer_array= items0= items1= items2= items3= 0;
|
||||
ref_pointer_array_size= 0;
|
||||
zero_result_cause= 0;
|
||||
optimized= 0;
|
||||
optimization_state= JOIN::NOT_OPTIMIZED;
|
||||
have_query_plan= QEP_NOT_PRESENT_YET;
|
||||
initialized= 0;
|
||||
cleaned= 0;
|
||||
|
Reference in New Issue
Block a user