Raft log - basic tests of state recovery

This commit is contained in:
Pavel Kirienko
2015-05-03 14:21:41 +03:00
parent a439c62532
commit b1f5313fcb
3 changed files with 166 additions and 11 deletions
@@ -137,6 +137,7 @@ private:
protocol::dynamic_node_id::server::Entry entries_[Capacity];
Index last_index_; // Index zero always contains an empty entry
static IDynamicNodeIDStorageBackend::String getLastIndexKey() { return "log_last_index"; }
static IDynamicNodeIDStorageBackend::String makeEntryKey(Index index, const char* postfix);
int readEntryFromStorage(Index index, protocol::dynamic_node_id::server::Entry& out_entry);