diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-03-15 11:52:26 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-03 14:14:27 +0400 |
commit | 2be28a91b15010c5e6146e78e78fbe10a9b86153 (patch) | |
tree | 7011f81fb604bdba5c6da4a7859f50fb306cbad4 /sql/session_tracker.h | |
parent | 19d5ddccfde04c6b336bb4974407ecde4fb6fbc6 (diff) | |
download | mariadb-git-2be28a91b15010c5e6146e78e78fbe10a9b86153.tar.gz |
Cleanup session tracker API
- Session_sysvars_tracker::server_init_check() -> sysvartrack_validate_value()
- Session_sysvars_tracker::check_var_list() -> sysvartrack_validate_value()
- Session_sysvars_tracker::server_init_process() -> sysvartrack_global_update()
- sysvartrack_reprint_value() -> sysvartrack_global_update()
- sysvartrack_value_len() -> sysvartrack_session_value_ptr()
- sysvartrack_value_construct() -> sysvartrack_session_value_ptr()
- sysvartrack_update() -> Session_sysvars_tracker::update()
- Session_tracker::server_boot_verify() -> session_tracker_init()
- sysvar_tracker() -> /dev/null
Part of MDEV-14984 - regression in connect performance
Diffstat (limited to 'sql/session_tracker.h')
-rw-r--r-- | sql/session_tracker.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/session_tracker.h b/sql/session_tracker.h index 1d0f55c252a..8edc3ce2a39 100644 --- a/sql/session_tracker.h +++ b/sql/session_tracker.h @@ -103,10 +103,8 @@ public: }; bool sysvartrack_validate_value(THD *thd, const char *str, size_t len); -bool sysvartrack_reprint_value(THD *thd, char *str, size_t len); -bool sysvartrack_update(THD *thd, set_var *var); -size_t sysvartrack_value_len(THD *thd); -bool sysvartrack_value_construct(THD *thd, char *val, size_t len); +bool sysvartrack_global_update(THD *thd, char *str, size_t len); +uchar *sysvartrack_session_value_ptr(THD *thd, const LEX_CSTRING *base); /** @@ -152,7 +150,6 @@ public: } void enable(THD *thd); - static bool server_boot_verify(CHARSET_INFO *char_set); /** Returns the pointer to the tracker object for the specified tracker. */ inline State_tracker *get_tracker(enum_session_tracker tracker) const @@ -296,6 +293,8 @@ private: ->X; } } while(0) #define SESSION_TRACKER_CHANGED(A,B,C) \ thd->session_tracker.mark_as_changed(A,B,C) + +int session_tracker_init(); #else #define TRANSACT_TRACKER(X) do{}while(0) |