#include <snapshot_manager.h>
◆ SnapshotManager()
snapshots::SnapshotManager::SnapshotManager |
( |
const std::string & |
snapshot_dir_, |
|
|
ringbuffer::AbstractWriterFactory & |
writer_factory, |
|
|
const std::optional< std::string > & |
read_snapshot_dir_ = std::nullopt |
|
) |
| |
|
inline |
◆ add_pending_snapshot()
◆ commit_snapshot()
void snapshots::SnapshotManager::commit_snapshot |
( |
::consensus::Index |
snapshot_idx, |
|
|
const uint8_t * |
receipt_data, |
|
|
size_t |
receipt_size |
|
) |
| |
|
inline |
◆ find_latest_committed_snapshot()
std::optional< std::pair< fs::path, fs::path > > snapshots::SnapshotManager::find_latest_committed_snapshot |
( |
| ) |
|
|
inline |
◆ get_main_directory()
fs::path snapshots::SnapshotManager::get_main_directory |
( |
| ) |
const |
|
inline |
◆ on_snapshot_sync_and_rename()
static void snapshots::SnapshotManager::on_snapshot_sync_and_rename |
( |
uv_work_t * |
req | ) |
|
|
inlinestatic |
◆ on_snapshot_sync_and_rename_complete()
static void snapshots::SnapshotManager::on_snapshot_sync_and_rename_complete |
( |
uv_work_t * |
req, |
|
|
int |
status |
|
) |
| |
|
inlinestatic |
◆ register_message_handlers()
The documentation for this class was generated from the following file: