mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix write ahead log
This commit is contained in:
parent
a61b231ddd
commit
763dfd7895
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user