OpenCBDC Transaction Processor
|
Used to store dtxs, which phase they are in and relevant data require for recovery. More...
#include <state_machine.hpp>
Data Fields | |
std::unordered_map< hash_t, nuraft::ptr< nuraft::buffer >, cbdc::hashing::const_sip_hash< hash_t > > | m_prepare_txs {} |
Maps dtx IDs in the prepare phase to a byte array containing relevant data for recovery. | |
std::unordered_map< hash_t, nuraft::ptr< nuraft::buffer >, cbdc::hashing::const_sip_hash< hash_t > > | m_commit_txs {} |
Maps dtx IDs in the commit phase to a byte array containing relevant data for recovery. | |
std::unordered_set< hash_t, cbdc::hashing::const_sip_hash< hash_t > > | m_discard_txs {} |
Set of dtx IDs in the discard phase. | |
Used to store dtxs, which phase they are in and relevant data require for recovery.
Each dtx should only be in one of the constituent variables at a time.
Definition at line 41 of file uhs/twophase/coordinator/state_machine.hpp.
std::unordered_map<hash_t, nuraft::ptr<nuraft::buffer>, cbdc::hashing::const_sip_hash<hash_t> > cbdc::coordinator::state_machine::coordinator_state::m_commit_txs {} |
Maps dtx IDs in the commit phase to a byte array containing relevant data for recovery.
Definition at line 53 of file uhs/twophase/coordinator/state_machine.hpp.
std::unordered_set<hash_t, cbdc::hashing::const_sip_hash<hash_t> > cbdc::coordinator::state_machine::coordinator_state::m_discard_txs {} |
Set of dtx IDs in the discard phase.
Definition at line 56 of file uhs/twophase/coordinator/state_machine.hpp.
std::unordered_map<hash_t, nuraft::ptr<nuraft::buffer>, cbdc::hashing::const_sip_hash<hash_t> > cbdc::coordinator::state_machine::coordinator_state::m_prepare_txs {} |
Maps dtx IDs in the prepare phase to a byte array containing relevant data for recovery.
Definition at line 47 of file uhs/twophase/coordinator/state_machine.hpp.