summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2020-08-11 00:01:53 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2020-08-11 00:01:53 +0400
commit19bdb03e97d6f760699cd718e11f71e01c268f5e (patch)
tree3399b856c7bc246e3faec3cb1aad40badac8764a /sql/sql_explain.h
parent0041dacc1b8e85e1958355d1cfdc36055b05a884 (diff)
downloadmariadb-git-bb-mdev21211-hf.tar.gz
MDEV-21211 LOCK_plugin optimization.bb-mdev21211-hf
Use Apc_target calls to 'notify' threads about changes in plugins.
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index ce3f3ef06e1..c9ad0ac4e0c 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -482,7 +482,8 @@ public:
/* If true, at least part of EXPLAIN can be printed */
bool have_query_plan() { return insert_plan || upd_del_plan|| get_node(1) != NULL; }
- void query_plan_ready();
+ void query_plan_set_ready() { query_plan_ready= true; }
+ bool query_plan_is_ready() const { return query_plan_ready; }
MEM_ROOT *mem_root;
@@ -496,9 +497,10 @@ private:
Dynamic_array<Explain_union*> unions;
Dynamic_array<Explain_select*> selects;
+
+ bool query_plan_ready;
+ THD *m_thd; //thd->mem_root to be used in print_explain_json
- THD *thd; // for APC start/stop
- bool apc_enabled;
/*
Debugging aid: count how many times add_node() was called. Ideally, it
should be one, we currently allow O(1) query plan saves for each