1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge 10.10 into 10.11

This commit is contained in:
Marko Mäkelä
2023-07-26 14:44:43 +03:00
146 changed files with 4385 additions and 2140 deletions

View File

@@ -766,6 +766,7 @@ public:
pushed_index_cond(NULL),
sjm_nest(NULL),
pre_join_sort(NULL),
handler_for_stats(NULL),
jbuf_unpack_tracker(timed),
rowid_filter(NULL)
{}
@@ -874,6 +875,16 @@ public:
Exec_time_tracker op_tracker;
Gap_time_tracker extra_time_tracker;
/*
Note: This pointer is only valid until notify_tables_are_closed() is
called. After that, the tables may be freed or reused, together with their
handler_stats objects.
notify_tables_are_closed() disables printing of FORMAT=JSON output.
r_engine_stats is only printed in FORMAT=JSON output, so we're fine.
*/
handler *handler_for_stats;
/* When using join buffer: Track the reads from join buffer */
Table_access_tracker jbuf_tracker;
@@ -925,7 +936,8 @@ public:
Explain_update(MEM_ROOT *root, bool is_analyze) :
Explain_node(root),
filesort_tracker(NULL),
command_tracker(is_analyze)
command_tracker(is_analyze),
handler_for_stats(NULL)
{}
virtual enum explain_node_type get_type() { return EXPLAIN_UPDATE; }
@@ -985,6 +997,9 @@ public:
/* TODO: This tracks time to read rows from the table */
Exec_time_tracker table_tracker;
/* The same as Explain_table_access::handler_for_stats */
handler *handler_for_stats;
virtual int print_explain(Explain_query *query, select_result_sink *output,
uint8 explain_flags, bool is_analyze);
virtual void print_explain_json(Explain_query *query, Json_writer *writer,