54 Epoch suggested_snapshot_epoch) {
ErrorStack uninitialize() override
An idempotent method to release all resources of this object, if any.
SnapshotId get_previous_snapshot_id_weak() const
ErrorStack read_snapshot_metadata(SnapshotId snapshot_id, SnapshotMetadata *out)
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
SnapshotId get_previous_snapshot_id() const
ErrorStack uninitialize() override final
Typical implementation of Initializable::uninitialize() that provides uninitialize-once semantics...
Brings error stacktrace information as return value of functions.
ErrorStack read_snapshot_metadata(SnapshotId snapshot_id, SnapshotMetadata *out)
Read the snapshot metadata file that contains storages as of the snapshot.
Epoch get_snapshot_epoch_weak() const
Non-atomic version.
void trigger_snapshot_immediate(bool wait_completion, Epoch suggested_snapshot_epoch=INVALID_EPOCH)
Immediately take a snapshot.
SnapshotId get_previous_snapshot_id_weak() const
Non-atomic version.
ErrorStack initialize() override final
Typical implementation of Initializable::initialize() that provides initialize-once semantics...
Database engine object that holds all resources and provides APIs.
Epoch get_snapshot_epoch() const
uint16_t SnapshotId
Unique ID of Snapshot.
bool is_initialized() const override
Returns whether the object has been already initialized or not.
Epoch get_snapshot_epoch_weak() const
SnapshotId get_previous_snapshot_id() const
Returns the most recent snapshot's ID.
ErrorStack initialize() override
Acquires resources in this object, usually called right after constructor.
Pimpl object of SnapshotManager.
Epoch get_snapshot_epoch() const
Returns the most recently snapshot-ed epoch, all logs upto this epoch is safe to delete.
void trigger_snapshot_immediate(bool wait_completion, Epoch suggested_snapshot_epoch)
bool is_initialized() const override final
Returns whether the object has been already initialized or not.