CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
snapshot_manager.h File Reference
#include "ccf/ds/nonstd.h"
#include "consensus/ledger_enclave_types.h"
#include "host/time_bound_logger.h"
#include "snapshots/filenames.h"
#include <charconv>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <optional>

Go to the source code of this file.

Classes

class  snapshots::SnapshotManager
 
struct  snapshots::SnapshotManager::AsyncSnapshotSyncAndRename
 

Namespaces

namespace  snapshots
 

Macros

#define THROW_ON_ERROR(x, name)
 

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)