mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02: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();
|
auto block = readers[current_unit_number]->read();
|
||||||
|
|
||||||
blocks[current_unit_number].block.push_back(block);
|
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());
|
blocks[current_unit_number].block_missing_values.push_back(readers[current_unit_number]->getMissingValues());
|
||||||
}
|
|
||||||
|
|
||||||
if (block == Block())
|
if (block == Block())
|
||||||
break;
|
break;
|
||||||
|
@ -106,7 +106,6 @@ protected:
|
|||||||
|
|
||||||
const BlockMissingValues & getMissingValues() const override
|
const BlockMissingValues & getMissingValues() const override
|
||||||
{
|
{
|
||||||
std::lock_guard missing_values_lock(missing_values_mutex);
|
|
||||||
return last_block_missing_values;
|
return last_block_missing_values;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +117,6 @@ private:
|
|||||||
std::atomic<bool> is_exception_occured{false};
|
std::atomic<bool> is_exception_occured{false};
|
||||||
|
|
||||||
BlockMissingValues last_block_missing_values;
|
BlockMissingValues last_block_missing_values;
|
||||||
mutable std::mutex missing_values_mutex;
|
|
||||||
|
|
||||||
// Original ReadBuffer to read from.
|
// Original ReadBuffer to read from.
|
||||||
ReadBuffer & original_buffer;
|
ReadBuffer & original_buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user