Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: xufei <[email protected]>
  • Loading branch information
windtalker committed Apr 22, 2022
1 parent eab0793 commit e0d47bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dbms/src/Interpreters/Aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,12 @@ void Aggregator::mergeStream(const BlockInputStreamPtr & stream, AggregatedDataV

auto task = [&merge_bucket, bucket, aggregates_pool] {
return merge_bucket(bucket, aggregates_pool);
}
};

if (thread_pool) thread_pool->schedule(wrapInvocable(true, task));
else task();
if (thread_pool)
thread_pool->schedule(wrapInvocable(true, task));
else
task();
}

if (thread_pool)
Expand Down

0 comments on commit e0d47bf

Please sign in to comment.