@@ -134,8 +134,7 @@ void reserveSpaceInHashMaps(
134134 pool->scheduleOrThrow (
135135 [&, i, thread_group = CurrentThread::getGroup ()]()
136136 {
137- ThreadGroupSwitcher switcher (thread_group);
138- setThreadName (" ConcurrentJoin" );
137+ ThreadGroupSwitcher switcher (thread_group, " ConcurrentJoin" );
139138
140139 const auto & right_data = getData (hash_joins[i]);
141140 std::visit ([&](auto & maps) { return reserve_space_in_buckets (maps, right_data->type , i); }, right_data->maps .at (0 ));
@@ -189,8 +188,7 @@ ConcurrentHashJoin::ConcurrentHashJoin(
189188 pool->scheduleOrThrow (
190189 [&, i, thread_group = CurrentThread::getGroup ()]()
191190 {
192- ThreadGroupSwitcher switcher (thread_group);
193- setThreadName (" ConcurrentJoin" );
191+ ThreadGroupSwitcher switcher (thread_group, " ConcurrentJoin" );
194192
195193 // / reserve is not needed anyway - either we will use fixed-size hash map or shared two-level map (then reserve will be done in a special way below)
196194 const size_t reserve_size = 0 ;
@@ -239,8 +237,7 @@ ConcurrentHashJoin::~ConcurrentHashJoin()
239237 pool->scheduleOrThrow (
240238 [join = hash_joins[0 ], i, this , thread_group = CurrentThread::getGroup ()]()
241239 {
242- ThreadGroupSwitcher switcher (thread_group);
243- setThreadName (" ConcurrentJoin" );
240+ ThreadGroupSwitcher switcher (thread_group, " ConcurrentJoin" );
244241
245242 auto clear_space_in_buckets = [&](auto & maps, HashJoin::Type type, size_t idx)
246243 {
0 commit comments