24#ifndef CHANGESTREAMS_INDEX_LOCKED_SIDNO_SET_H_INCLUDED
25#define CHANGESTREAMS_INDEX_LOCKED_SIDNO_SET_H_INCLUDED
65 std::reference_wrapper<Gtid_state>
Represents the server's GTID state: the set of committed GTIDs, the set of lost gtids,...
Definition: rpl_gtid.h:2853
Set that keeps track of TSID locks taken in the current scope.
Definition: locked_sidno_set.h:45
void add_lock_for_sidno(rpl_sidno sidno)
Adds a given sidno to the internal set, does not acquire ownership.
Definition: locked_sidno_set.cc:31
Set_type m_sidno_set
SIDs for which lock will be acquired.
Definition: locked_sidno_set.h:64
bool m_locked
Is set currently locked?
Definition: locked_sidno_set.h:68
Locked_sidno_set(Locked_sidno_set &src)=delete
void lock()
Locks recorded sidno locks, in order.
Definition: locked_sidno_set.cc:36
std::set< rpl_sidno > Set_type
Type of the set used.
Definition: locked_sidno_set.h:63
std::reference_wrapper< Gtid_state > m_gtid_state
Reference to the current Gtid_state object (avoids using the global gtid_state variable in the class)
Definition: locked_sidno_set.h:66
Locked_sidno_set(Gtid_state >id_state)
Definition: locked_sidno_set.cc:28
~Locked_sidno_set()
Destructor, releases all locks kept in the set.
Definition: locked_sidno_set.cc:45
Gtid_state * gtid_state
Global state of GTIDs.
Definition: mysqld.cc:1826
Definition: locked_sidno_set.cc:26
int rpl_sidno
Type of SIDNO (source ID number, first component of GTID)
Definition: sidno.h:27