#include <session_tracker.h>
|
void | reset () |
| Reset the m_changed flag for next statement. More...
|
|
◆ Session_state_change_tracker()
Session_state_change_tracker::Session_state_change_tracker |
( |
| ) |
|
◆ check()
bool Session_state_change_tracker::check |
( |
THD * |
thd, |
|
|
set_var * |
var |
|
) |
| |
|
inlineoverridevirtual |
To be invoked when the tracker's system variable is checked (ON_CHECK).
Implements State_tracker.
◆ enable()
bool Session_state_change_tracker::enable |
( |
THD * |
thd | ) |
|
|
overridevirtual |
Initiate the value of m_enabled based on @session_track_state_change value.
- Parameters
-
- Returns
- false (always)
Implements State_tracker.
◆ is_state_changed()
bool Session_state_change_tracker::is_state_changed |
( |
| ) |
|
find if there is a session state change
- Returns
- A session state change flag.
- Return values
-
true | There is a session state change |
false | There is no session state change |
◆ mark_as_changed()
void Session_state_change_tracker::mark_as_changed |
( |
THD * |
thd, |
|
|
LEX_CSTRING |
tracked_item_name |
|
) |
| |
|
overridevirtual |
Mark the tracker as changed and associated session attributes accordingly.
Implements State_tracker.
◆ reset()
void Session_state_change_tracker::reset |
( |
void |
| ) |
|
|
private |
Reset the m_changed flag for next statement.
◆ store()
bool Session_state_change_tracker::store |
( |
THD * |
, |
|
|
String & |
buf |
|
) |
| |
|
overridevirtual |
Store the 1byte boolean flag in the specified buffer.
Once the data is stored, we reset the flags related to state-change. If 1byte flag value is 1 then there is a session state change else there is no state change information.
- Parameters
-
[in,out] | buf | Buffer to store the information to. |
- Returns
- false Success true Error
Implements State_tracker.
◆ update()
bool Session_state_change_tracker::update |
( |
THD * |
thd | ) |
|
|
overridevirtual |
Enable/disable the tracker based on @session_track_state_change value.
- Parameters
-
- Returns
- false (always)
Implements State_tracker.
The documentation for this class was generated from the following files: