summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-03-26 10:48:56 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2015-03-29 15:33:15 +0200
commitb2a1187307b7f7f79138cf87a21f84a836fca2a0 (patch)
tree359a7f8ab14e69ebce6927b58f4432fdff1b6139 /sql/sql_explain.h
parent9b8f86f8958116030de5a4e6ab75011cca251dfc (diff)
downloadmariadb-git-b2a1187307b7f7f79138cf87a21f84a836fca2a0.tar.gz
MDEV-7812: ANALYZE FORMAT=JSON UPDATE/DELETE doesnt print the r_total_time_ms
Tracking total time added in UPDATE/DELETE Fixed selectivity calculation in UPDATE/DELETE Macro definitions of time tracting fixed.
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h
index e3b41eeb4f8..65027bdc907 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -131,11 +131,11 @@ public:
#define ANALYZE_START_TRACKING(tracker) \
if (tracker) \
- { tracker->start_tracking(); }
+ { (tracker)->start_tracking(); }
#define ANALYZE_STOP_TRACKING(tracker) \
if (tracker) \
- { tracker->stop_tracking(); }
+ { (tracker)->stop_tracking(); }
/**************************************************************************************
@@ -809,6 +809,7 @@ public:
/* ANALYZE members and methods */
Table_access_tracker tracker;
+ Exec_time_tracker time_tracker;
//psergey-todo: io-tracker here.
virtual int print_explain(Explain_query *query, select_result_sink *output,