mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
remove unused mutex
This commit is contained in:
parent
c867d7a306
commit
8b17ce492f
@ -81,10 +81,7 @@ void ParallelParsingBlockInputStream::parserThreadFunction(size_t current_unit_n
|
||||
auto block = readers[current_unit_number]->read();
|
||||
|
||||
blocks[current_unit_number].block.push_back(block);
|
||||
{
|
||||
std::lock_guard missing_values_lock(missing_values_mutex);
|
||||
blocks[current_unit_number].block_missing_values.push_back(readers[current_unit_number]->getMissingValues());
|
||||
}
|
||||
|
||||
if (block == Block())
|
||||
break;
|
||||
|
@ -106,7 +106,6 @@ protected:
|
||||
|
||||
const BlockMissingValues & getMissingValues() const override
|
||||
{
|
||||
std::lock_guard missing_values_lock(missing_values_mutex);
|
||||
return last_block_missing_values;
|
||||
}
|
||||
|
||||
@ -118,7 +117,6 @@ private:
|
||||
std::atomic<bool> is_exception_occured{false};
|
||||
|
||||
BlockMissingValues last_block_missing_values;
|
||||
mutable std::mutex missing_values_mutex;
|
||||
|
||||
// Original ReadBuffer to read from.
|
||||
ReadBuffer & original_buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user