OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
log_store.cpp File Reference
#include "log_store.hpp"
#include <array>
#include <cstring>
#include <leveldb/write_batch.h>
#include <libnuraft/buffer_serializer.hxx>
Include dependency graph for log_store.cpp:

Go to the source code of this file.

Namespaces

namespace  cbdc
 
namespace  cbdc::raft
 

Typedefs

using cbdc::raft::data_slice = std::pair<leveldb::Slice, std::vector<char>>
 

Functions

template<bool First>
auto cbdc::raft::get_first_or_last_index (leveldb::DB *db, const leveldb::ReadOptions &opt) -> uint64_t
 
auto cbdc::raft::log_entry_from_slice (const leveldb::Slice &slice) -> nuraft::ptr< nuraft::log_entry >
 
auto cbdc::raft::get_key_slice (uint64_t key) -> data_slice
 
auto cbdc::raft::get_value_slice (nuraft::ptr< nuraft::log_entry > &entry) -> data_slice