![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
#include <session_tracker.h>
Public Member Functions | |
| Session_tracker (Session_tracker const &)=delete | |
| Session_tracker & | operator= (Session_tracker const &)=delete | 
| Session_tracker ()=default | |
| Constructor.  More... | |
| ~Session_tracker ()=default | |
| Destructor.  More... | |
| void | init (const CHARSET_INFO *char_set) | 
| Initialize Session_tracker objects and enable them based on the tracker_xxx variables' value that the session inherit from global variables at the time of session initialization (see plugin_thdvar_init).  More... | |
| void | enable (THD *thd) | 
| Enables the tracker objects.  More... | |
| bool | server_boot_verify (const CHARSET_INFO *char_set, LEX_STRING var_list) | 
| Method called during the server startup to verify the contents of @session_track_system_variables.  More... | |
| State_tracker * | get_tracker (enum_session_tracker tracker) const | 
| Returns the pointer to the tracker object for the specified tracker.  More... | |
| bool | enabled_any () | 
| Checks if m_enabled flag is set for any of the tracker objects.  More... | |
| bool | changed_any () | 
| Checks if m_changed flag is set for any of the tracker objects.  More... | |
| void | store (THD *thd, String &main_buf) | 
| Stores the session state change information of all changes session state type entities into the specified buffer.  More... | |
| void | deinit () | 
| void | claim_memory_ownership (bool claim) | 
Private Attributes | |
| State_tracker * | m_trackers [SESSION_TRACKER_END+1] | 
This class holds an object each for all tracker classes and provides methods necessary for systematic detection and generation of session state change information.
      
  | 
  delete | 
      
  | 
  default | 
Constructor.
      
  | 
  default | 
Destructor.
| bool Session_tracker::changed_any | ( | ) | 
Checks if m_changed flag is set for any of the tracker objects.
| void Session_tracker::claim_memory_ownership | ( | bool | claim | ) | 
      
  | 
  inline | 
| void Session_tracker::enable | ( | THD * | thd | ) | 
Enables the tracker objects.
| thd | The thread handle. | 
| bool Session_tracker::enabled_any | ( | ) | 
Checks if m_enabled flag is set for any of the tracker objects.
| State_tracker * Session_tracker::get_tracker | ( | enum_session_tracker | tracker | ) | const | 
Returns the pointer to the tracker object for the specified tracker.
| tracker | Tracker type. | 
| void Session_tracker::init | ( | const CHARSET_INFO * | char_set | ) | 
Initialize Session_tracker objects and enable them based on the tracker_xxx variables' value that the session inherit from global variables at the time of session initialization (see plugin_thdvar_init).
Initialize session tracker objects.
| char_set | The character set info. | 
      
  | 
  delete | 
| bool Session_tracker::server_boot_verify | ( | const CHARSET_INFO * | char_set, | 
| LEX_STRING | var_list | ||
| ) | 
Method called during the server startup to verify the contents of @session_track_system_variables.
| char_set | The character set info. | 
| var_list | Value of @session_track_system_variables. | 
Stores the session state change information of all changes session state type entities into the specified buffer.
Store all change information in the specified buffer.
| thd | The thd handle. | |
| [out] | buf | Reference to the string buffer to which the state change data needs to be written. | 
      
  | 
  private |