41 std::memset(control_block_->buffer_, 0,
sizeof(control_block_->buffer_));
49 &control_block_->oldest_offset_,
50 &control_block_->durable_offset_);
58 stop_requested_ =
false;
59 logger_thread_ = std::move(std::thread(&MetaLogger::meta_logger_main,
this));
GlobalMemoryAnchors * get_global_memory_anchors()
ErrorCode open(bool read, bool write, bool append, bool create)
Tries to open the file for the specified volume.
uint64_t get_current_offset() const
log::MetaLogControlBlock * meta_logger_memory_
Tiny memory for metadata logger.
const EngineOptions & get_options() const
bool is_master() const
Returns if this engine object is a master instance.
savepoint::SavepointManager * get_savepoint_manager() const
See Savepoint Manager.
bool create_directories(const Path &p, bool sync=false)
Recursive mkdir (mkdirs).
bool exists(const Path &p)
Returns if the file exists.
std::string construct_meta_log_path() const
metadata log file is placed in node-0/logger-0 folder
#define CHECK_ERROR(x)
This macro calls x and checks its returned value.
foedus::fs::DeviceEmulationOptions emulation_
Settings to emulate slower logging device.
const ErrorStack kRetOk
Normal return value for no-error case.
soc::SocManager * get_soc_manager() const
See SOC and IPC.
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
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
#define WRAP_ERROR_CODE(x)
Same as CHECK_ERROR(x) except it receives only an error code, thus more efficient.
SharedMemoryRepo * get_shared_memory_repo()
Returns the shared memories maintained across SOCs.