mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Merge pull request #36015 from ucasfl/filelog-fix
Fix data race in StorgeFileLog
This commit is contained in:
commit
5909b3c04d
@ -720,7 +720,7 @@ bool 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.setNumThreads(max_streams_number);
|
||||
|
Loading…
Reference in New Issue
Block a user