Trying without fsync

This commit is contained in:
alesapin 2021-02-17 22:32:38 +03:00
parent bb4ced05f9
commit 6e244e7bb1
2 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ void Changelog::appendEntry(size_t index, nuraft::ptr<nuraft::log_entry> log_ent
if (current_writer->getEntriesWritten() == rotate_interval)
rotate(index);
auto offset = current_writer->appendRecord(buildRecord(index, log_entry), true);
auto offset = current_writer->appendRecord(buildRecord(index, log_entry), false);
if (!index_to_start_pos.try_emplace(index, offset).second)
throw Exception(ErrorCodes::LOGICAL_ERROR, "Record with index {} already exists", index);

View File

@ -101,7 +101,7 @@ public:
private:
void rotate(size_t new_start_log_idex);
void rotate(size_t new_start_log_idx);
ChangelogRecord buildRecord(size_t index, nuraft::ptr<nuraft::log_entry> log_entry) const;