OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::coordinator::state_machine::coordinator_state Struct Reference

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.
 

Detailed Description

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.

Field Documentation

◆ m_commit_txs

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.

◆ m_discard_txs

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.

◆ m_prepare_txs

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.


The documentation for this struct was generated from the following file: