61 Epoch new_snapshot_epoch) {
70 uint64_t* oldest_offset,
71 uint64_t* durable_offset)
const {
Epoch get_earliest_epoch() const
ErrorStack take_savepoint_after_snapshot(snapshot::SnapshotId new_snapshot_id, Epoch new_snapshot_epoch)
Takes a savepoint just to remember the newly taken snapshot.
snapshot::SnapshotId get_latest_snapshot_id() const
FixedSavepoint savepoint_
The content of latest savepoint.
snapshot::SnapshotId get_latest_snapshot_id() const
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Epoch get_initial_current_epoch() const
ErrorStack initialize() override
Acquires resources in this object, usually called right after constructor.
uint64_t meta_log_durable_offset_
ErrorStack uninitialize() override final
Typical implementation of Initializable::uninitialize() that provides uninitialize-once semantics...
Brings error stacktrace information as return value of functions.
ErrorStack take_savepoint(Epoch new_global_durable_epoch)
Atomically and durably takes a savepoint for the given epoch advancement.
Epoch get_latest_snapshot_epoch() const
Epoch get_saved_durable_epoch() const
void change_meta_logger_durable_offset(uint64_t durable_offset)
Rewrites meta logger's durable_offset.
Epoch get_initial_durable_epoch() const
SavepointManagerControlBlock * control_block_
uint64_t meta_log_oldest_offset_
ErrorStack uninitialize() override
An idempotent method to release all resources of this object, if any.
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_initial_current_epoch() const
ErrorStack take_savepoint(Epoch new_global_durable_epoch)
ErrorStack take_savepoint_after_snapshot(snapshot::SnapshotId new_snapshot_id, Epoch new_snapshot_epoch)
uint16_t SnapshotId
Unique ID of Snapshot.
Pimpl object of SavepointManager.
Epoch get_latest_snapshot_epoch() const
Epoch get_earliest_epoch() const
Epoch get_initial_durable_epoch() const
void get_meta_logger_offsets(uint64_t *oldest_offset, uint64_t *durable_offset) const
Returns the saved information of metadata logger in lateset savepoint.
Epoch get_saved_durable_epoch() const
SavepointManager()=delete
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
Information in savepoint for one logger.
uint16_t LoggerId
Typedef for an ID of Logger.
bool is_initialized() const override
Returns whether the object has been already initialized or not.
LoggerSavepointInfo get_logger_savepoint(log::LoggerId logger_id)
bool is_initialized() const override final
Returns whether the object has been already initialized or not.
LoggerSavepointInfo get_logger_savepoint(log::LoggerId logger_id)
Returns the saved information of the given logger in latest savepoint.