This commit is contained in:
alesapin 2021-02-18 14:47:37 +03:00
parent 7f815325ba
commit 904b4754cc
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ void Changelog::rotate(size_t new_start_log_idx)
current_writer = std::make_unique<ChangelogWriter>(new_description.path, WriteMode::Rewrite, new_start_log_idx);
}
ChangelogRecord Changelog::buildRecord(size_t index, nuraft::ptr<nuraft::log_entry> log_entry) const
ChangelogRecord Changelog::buildRecord(size_t index, nuraft::ptr<nuraft::log_entry> log_entry)
{
ChangelogRecordHeader header;
header.index = index;

View File

@ -103,7 +103,7 @@ private:
void rotate(size_t new_start_log_idx);
ChangelogRecord buildRecord(size_t index, nuraft::ptr<nuraft::log_entry> log_entry) const;
static ChangelogRecord buildRecord(size_t index, nuraft::ptr<nuraft::log_entry> log_entry);
private:
std::string changelogs_dir;