mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +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