Merge pull request #36015 from ucasfl/filelog-fix

Fix data race in StorgeFileLog
This commit is contained in:
Kseniia Sumarokova 2022-04-07 12:23:12 +02:00 committed by GitHub
commit 5909b3c04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);