MySQL 8.0.40
Source Code Documentation
|
Generate logical timestamps for MTS using WRITESET_SESSION in the binlog-transaction-dependency-tracking option. More...
#include <rpl_trx_tracking.h>
Public Member Functions | |
void | get_dependency (THD *thd, int64 &sequence_number, int64 &commit_parent) |
Main function that gets the dependencies using the WRITESET_SESSION tracker. More... | |
Generate logical timestamps for MTS using WRITESET_SESSION in the binlog-transaction-dependency-tracking option.
void Writeset_session_trx_dependency_tracker::get_dependency | ( | THD * | thd, |
int64 & | sequence_number, | ||
int64 & | commit_parent | ||
) |
Main function that gets the dependencies using the WRITESET_SESSION tracker.
Get the writeset commit parent of transactions using the session dependencies.
[in] | thd | THD of the caller. |
[in,out] | sequence_number | sequence_number initialized and returned. |
[in,out] | commit_parent | commit_parent to be returned. |
[in] | thd | Current THD from which to extract trx context. |
[in,out] | sequence_number | Sequence number of current transaction. |
[in,out] | commit_parent | Commit_parent of current transaction, pre-filled with the commit_parent calculated by the Write_set_trx_dependency_tracker as a fall-back. |