summaryrefslogtreecommitdiff
path: root/sql/session_tracker.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-03-13 12:20:11 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-03 14:14:27 +0400
commit55bdd7f7b4a0898dca2a2e7d457b06cb81df7d6a (patch)
tree87e76ac08a5477ce1021b7bf426c87d855519ca3 /sql/session_tracker.cc
parent2be28a91b15010c5e6146e78e78fbe10a9b86153 (diff)
downloadmariadb-git-55bdd7f7b4a0898dca2a2e7d457b06cb81df7d6a.tar.gz
Get rid of not implemented SESSION_GTIDS_TRACKER
One less new/delete per connection. Part of MDEV-14984 - regression in connect performance
Diffstat (limited to 'sql/session_tracker.cc')
-rw-r--r--sql/session_tracker.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/sql/session_tracker.cc b/sql/session_tracker.cc
index 7908c083446..13da65b417e 100644
--- a/sql/session_tracker.cc
+++ b/sql/session_tracker.cc
@@ -34,20 +34,6 @@ void State_tracker::mark_as_changed(THD *thd, LEX_CSTRING *tracked_item_name)
}
-class Not_implemented_tracker : public State_tracker
-{
-public:
- bool enable(THD *thd)
- { return false; }
- bool update(THD *, set_var *)
- { return false; }
- bool store(THD *, String *)
- { return false; }
- void mark_as_changed(THD *, LEX_CSTRING *tracked_item_name)
- {}
-
-};
-
/**
Session_sysvars_tracker
@@ -1443,8 +1429,6 @@ void Session_tracker::enable(THD *thd)
new (std::nothrow) Current_schema_tracker;
m_trackers[SESSION_STATE_CHANGE_TRACKER]=
new (std::nothrow) Session_state_change_tracker;
- m_trackers[SESSION_GTIDS_TRACKER]=
- new (std::nothrow) Not_implemented_tracker;
m_trackers[TRANSACTION_INFO_TRACKER]=
new (std::nothrow) Transaction_state_tracker;