Derecho  0.9
Distributed systems toolkit for RDMA
PersistLog.cpp
Go to the documentation of this file.
4 
5 namespace persistent {
6 
7 PersistLog::PersistLog(const std::string& name) noexcept(true) : m_sName(name) {
8 }
9 
10 PersistLog::~PersistLog() noexcept(true) {
11 }
12 
13 #ifdef DERECHO_DEBUG
14 void PersistLog::dump_hidx() {
15  dbg_default_trace("number of entry in hidx:{}.log_len={}.", hidx.size(), getLength());
16  for(auto itr = hidx.cbegin(); itr != hidx.cend(); itr++) {
17  dbg_default_trace("hlc({0},{1})->idx({2})", itr->hlc.m_rtc_us, itr->hlc.m_logic, itr->log_idx);
18  }
19 }
20 #endif //NDEBUG
21 } // namespace persistent
This file include all common types internal to derecho and not necessarily being known by a client pr...
std::set< hlc_index_entry, hlc_index_entry_comp > hidx
Definition: PersistLog.hpp:62
PersistLog(const std::string &name) noexcept(true)
Definition: PersistLog.cpp:7
virtual int64_t getLength() noexcept(false)=0
#define dbg_default_trace(...)
Definition: logger.hpp:40
virtual ~PersistLog() noexcept(true)
Definition: PersistLog.cpp:10