50 ASSERT_ND(logger_id < pimpl_->logger_refs_.size());
LoggerRef get_logger(LoggerId logger_id)
Returns a reference to the logger of the given ID.
MetaLogBuffer * get_meta_buffer()
MetaLogger * get_meta_logger()
void wakeup_loggers()
Wake up loggers if they are sleeping.
Epoch get_durable_global_epoch_weak() const
Non-atomic version of the method.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
bool is_initialized() const override
Returns whether the object has been already initialized or not.
ErrorStack uninitialize() override
An idempotent method to release all resources of this object, if any.
ErrorStack uninitialize() override final
Typical implementation of Initializable::uninitialize() that provides uninitialize-once semantics...
Brings error stacktrace information as return value of functions.
The information we maintain in savepoint manager and externalize to a file.
ErrorStack refresh_global_durable_epoch()
Called whenever there is a chance that the global durable epoch advances.
Pimpl object of LogManager.
ErrorStack initialize() override
Acquires resources in this object, usually called right after constructor.
void copy_logger_states(savepoint::Savepoint *new_savepoint)
Fillup the given savepoint with the current information of the loggers.
Epoch get_durable_global_epoch() const
A view of Logger object for other SOCs and master engine.
MetaLogger * meta_logger_
Metadata log writer.
MetaLogBuffer meta_buffer_
Metadata log buffer.
ErrorStack initialize() override final
Typical implementation of Initializable::initialize() that provides initialize-once semantics...
Database engine object that holds all resources and provides APIs.
std::vector< LoggerRef > logger_refs_
All log writers.
Epoch get_durable_global_epoch_weak() const
ErrorCode wait_until_durable(Epoch commit_epoch, int64_t wait_microseconds=-1)
Synchronously blocks until the durable global epoch reaches the given commit epoch or the given durat...
ErrorStack refresh_global_durable_epoch()
Epoch get_durable_global_epoch() const
Returns the durable epoch of the entire engine.
void announce_new_durable_global_epoch(Epoch new_epoch)
Sets the new global durable epoch and also wakes up threads that were waiting for it...
void copy_logger_states(savepoint::Savepoint *new_savepoint)
void announce_new_durable_global_epoch(Epoch new_epoch)
ErrorCode wait_until_durable(Epoch commit_epoch, int64_t wait_microseconds)
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
uint16_t LoggerId
Typedef for an ID of Logger.
ErrorCode
Enum of error codes defined in error_code.xmacro.
bool is_initialized() const override final
Returns whether the object has been already initialized or not.