diff --git a/src/Storages/FileLog/StorageFileLog.cpp b/src/Storages/FileLog/StorageFileLog.cpp index 4fb19b12bab..d7c732aee02 100644 --- a/src/Storages/FileLog/StorageFileLog.cpp +++ b/src/Storages/FileLog/StorageFileLog.cpp @@ -720,7 +720,7 @@ bool StorageFileLog::streamToViews() assertBlocksHaveEqualStructure(input.getHeader(), block_io.pipeline.getHeader(), "StorageFileLog streamToViews"); - size_t rows = 0; + std::atomic rows = 0; { block_io.pipeline.complete(std::move(input)); block_io.pipeline.setNumThreads(max_streams_number);