#include <restart_state.hpp>
Public Member Functions | |
void | load_ragged_trim (const View &curr_view) |
Static Public Member Functions | |
static persistent::version_t | ragged_trim_to_latest_version (const int32_t view_id, const std::vector< int32_t > &max_received_by_sender) |
Computes the persistent version corresponding to a ragged trim proposal, i.e. More... | |
Public Attributes | |
ragged_trim_map_t | logged_ragged_trim |
List of logged ragged trim states recovered from the last known View, either read locally from this node's logs or received from the restart leader. More... | |
std::vector< std::vector< int64_t > > | restart_shard_leaders |
Map from (subgroup ID, shard num) to ID of the "restart leader" for that shard, which is the node with the longest persistent log for that shard's replicated state. More... | |
Definition at line 57 of file restart_state.hpp.
void derecho::RestartState::load_ragged_trim | ( | const View & | curr_view | ) |
Definition at line 14 of file restart_state.cpp.
|
static |
Computes the persistent version corresponding to a ragged trim proposal, i.e.
the version number that will be persisted if these updates are committed.
view_id | The VID of the current View (since it's part of the version number) |
max_received_by_sender | The ragged trim proposal for a single shard, corresponding to a single Replicated Object |
Definition at line 61 of file restart_state.cpp.
ragged_trim_map_t derecho::RestartState::logged_ragged_trim |
List of logged ragged trim states recovered from the last known View, either read locally from this node's logs or received from the restart leader.
Definition at line 61 of file restart_state.hpp.
std::vector<std::vector<int64_t> > derecho::RestartState::restart_shard_leaders |
Map from (subgroup ID, shard num) to ID of the "restart leader" for that shard, which is the node with the longest persistent log for that shard's replicated state.
Definition at line 65 of file restart_state.hpp.