Skip to content

Commit 6f30f19

Browse files
committed
Correction
1 parent dee5dd5 commit 6f30f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jrd/recsrc/HashJoin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ void HashJoin::init(thread_db* tdbb, CompilerScratch* csb, FB_SIZE_T count,
276276
{
277277
m_impure = csb->allocImpure<Impure>();
278278

279-
m_args.add(args[0]);
280279
m_leader.source = args[0];
281280
m_leader.keys = keys[0];
282281
const FB_SIZE_T leaderKeyCount = m_leader.keys->getCount();
283282
m_leader.keyLengths = FB_NEW_POOL(csb->csb_pool) ULONG[leaderKeyCount];
284283
m_leader.totalKeyLength = 0;
285284

286285
m_cardinality = m_leader.source->getCardinality();
286+
m_args.add(m_leader.source);
287287

288288
for (FB_SIZE_T j = 0; j < leaderKeyCount; j++)
289289
{
@@ -314,7 +314,6 @@ void HashJoin::init(thread_db* tdbb, CompilerScratch* csb, FB_SIZE_T count,
314314
const auto subRsb = args[i];
315315
fb_assert(subRsb);
316316

317-
m_args.add(subRsb);
318317
m_cardinality *= subRsb->getCardinality();
319318

320319
SubStream sub;
@@ -349,6 +348,7 @@ void HashJoin::init(thread_db* tdbb, CompilerScratch* csb, FB_SIZE_T count,
349348
}
350349

351350
m_subs.add(sub);
351+
m_args.add(sub.buffer);
352352
}
353353

354354
if (!selectivity)

0 commit comments

Comments
 (0)