mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
Fix modernize-avoid-bind in ParallelParsingBlockInputStream
This commit is contained in:
parent
0cb6669531
commit
a5885b476f
@ -63,8 +63,10 @@ void ParallelParsingBlockInputStream::cancel(bool kill)
|
|||||||
|
|
||||||
void ParallelParsingBlockInputStream::scheduleParserThreadForUnitWithNumber(size_t ticket_number)
|
void ParallelParsingBlockInputStream::scheduleParserThreadForUnitWithNumber(size_t ticket_number)
|
||||||
{
|
{
|
||||||
pool.scheduleOrThrowOnError(std::bind(
|
pool.scheduleOrThrowOnError([this, ticket_number]()
|
||||||
&ParallelParsingBlockInputStream::parserThreadFunction, this, CurrentThread::getGroup(), ticket_number));
|
{
|
||||||
|
parserThreadFunction(CurrentThread::getGroup(), ticket_number);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParallelParsingBlockInputStream::finishAndWait()
|
void ParallelParsingBlockInputStream::finishAndWait()
|
||||||
|
Loading…
Reference in New Issue
Block a user