mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Trying without fsync
This commit is contained in:
parent
bb4ced05f9
commit
6e244e7bb1
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user