mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix data race in StorgeFileLog
This commit is contained in:
parent
e7fdb0ddce
commit
517c2ae8df
@ -720,7 +720,7 @@ bool StorageFileLog::streamToViews()
|
|||||||
|
|
||||||
assertBlocksHaveEqualStructure(input.getHeader(), block_io.pipeline.getHeader(), "StorageFileLog streamToViews");
|
assertBlocksHaveEqualStructure(input.getHeader(), block_io.pipeline.getHeader(), "StorageFileLog streamToViews");
|
||||||
|
|
||||||
size_t rows = 0;
|
std::atomic<size_t> rows = 0;
|
||||||
{
|
{
|
||||||
block_io.pipeline.complete(std::move(input));
|
block_io.pipeline.complete(std::move(input));
|
||||||
block_io.pipeline.setNumThreads(max_streams_number);
|
block_io.pipeline.setNumThreads(max_streams_number);
|
||||||
|
Loading…
Reference in New Issue
Block a user