CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
snapshots.h File Reference
#include "ccf/crypto/sha256_hash.h"
#include "ccf/ds/nonstd.h"
#include "consensus/ledger_enclave_types.h"
#include "crypto/openssl/hash.h"
#include "ds/files.h"
#include "time_bound_logger.h"
#include <charconv>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <optional>

Go to the source code of this file.

Classes

class  asynchost::SnapshotManager
 
struct  asynchost::SnapshotManager::AsyncSnapshotSyncAndRename
 

Namespaces

namespace  asynchost
 

Macros

#define THROW_ON_ERROR(x, name)
 

Functions

std::optional< fs::path > asynchost::find_latest_committed_snapshot_in_directory (const fs::path &directory, size_t &latest_committed_snapshot_idx)
 

Macro Definition Documentation

◆ THROW_ON_ERROR

#define THROW_ON_ERROR (   x,
  name 
)
Value:
do \
{ \
auto rc = x; \
if (rc == -1) \
{ \
throw std::runtime_error(fmt::format( \
"Error ({}) writing snapshot {} in " #x, strerror(errno), name)); \
} \
} while (0)