Fix write ahead log

This commit is contained in:
alesapin 2022-02-03 12:14:00 +03:00
parent a61b231ddd
commit 763dfd7895

View File

@ -109,6 +109,8 @@ void MergeTreeWriteAheadLog::rotate(const std::unique_lock<std::mutex> &)
+ toString(min_block_number) + "_"
+ toString(max_block_number) + WAL_FILE_EXTENSION;
/// Finalize stream before file rename
out->finalize();
disk->replaceFile(path, storage.getRelativeDataPath() + new_name);
init();
}