MySQL 8.0.37
Source Code Documentation
Writeset_session_trx_dependency_tracker Class Reference

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...
 

Detailed Description

Generate logical timestamps for MTS using WRITESET_SESSION in the binlog-transaction-dependency-tracking option.

Member Function Documentation

◆ get_dependency()

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.

Parameters
[in]thdTHD of the caller.
[in,out]sequence_numbersequence_number initialized and returned.
[in,out]commit_parentcommit_parent to be returned.
[in]thdCurrent THD from which to extract trx context.
[in,out]sequence_numberSequence number of current transaction.
[in,out]commit_parentCommit_parent of current transaction, pre-filled with the commit_parent calculated by the Write_set_trx_dependency_tracker as a fall-back.

The documentation for this class was generated from the following files: