MySQL 8.0.39
Source Code Documentation
|
Public Member Functions | |
Session_gtids_tracker () | |
Constructor. More... | |
~Session_gtids_tracker () override | |
bool | enable (THD *thd) override |
Called in the constructor of THD. More... | |
bool | check (THD *, set_var *) override |
To be invoked when the tracker's system variable is checked (ON_CHECK). More... | |
bool | update (THD *thd) override |
Enable/disable the tracker based on @session_track_gtids's value. More... | |
bool | store (THD *thd, String &buf) override |
Store the collected gtids as length-encoded string in the specified buffer. More... | |
void | mark_as_changed (THD *thd, LEX_CSTRING tracked_item_name) override |
Mark the tracker as changed. More... | |
void | notify_session_gtids_ctx_change () override |
Public Member Functions inherited from State_tracker | |
State_tracker () | |
Constructor. More... | |
virtual | ~State_tracker ()=default |
Destructor. More... | |
bool | is_enabled () const |
Getters. More... | |
bool | is_changed () const |
virtual void | claim_memory_ownership (bool claim) |
Private Member Functions | |
void | reset () |
Reset the m_changed flag for next statement. More... | |
Private Member Functions inherited from Session_consistency_gtids_ctx::Ctx_change_listener | |
Ctx_change_listener ()=default | |
virtual | ~Ctx_change_listener ()=default |
Private Attributes | |
Session_gtids_ctx_encoder * | m_encoder |
Additional Inherited Members | |
Protected Attributes inherited from State_tracker | |
bool | m_enabled |
Is tracking enabled for a particular session state type ? More... | |
bool | m_changed |
Has the session state type changed ? More... | |
This is a tracker class that enables & manages the tracking of gtids for relaying to the connectors the information needed to handle session consistency.
|
inline |
Constructor.
|
inlineoverride |
To be invoked when the tracker's system variable is checked (ON_CHECK).
Implements State_tracker.
|
inlineoverridevirtual |
Called in the constructor of THD.
Implements State_tracker.
|
overridevirtual |
Mark the tracker as changed.
thd | Always null. |
tracked_item_name | Always null. |
Implements State_tracker.
|
inlineoverridevirtual |
|
private |
Reset the m_changed flag for next statement.
Store the collected gtids as length-encoded string in the specified buffer.
Once the data is stored, we reset the flags related to state-change (see reset()).
thd | The thd handle. | |
[in,out] | buf | Buffer to store the information to. |
Implements State_tracker.
|
overridevirtual |
Enable/disable the tracker based on @session_track_gtids's value.
thd | The thd handle. |
Implements State_tracker.
|
private |