MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecParallelHashCloseBatchAccessors

Function ExecParallelHashCloseBatchAccessors

src/backend/executor/nodeHash.c:3729–3744  ·  view source on GitHub ↗

* Free the current set of ParallelHashJoinBatchAccessor objects. */

Source from the content-addressed store, hash-verified

3727 * Free the current set of ParallelHashJoinBatchAccessor objects.
3728 */
3729static void
3730ExecParallelHashCloseBatchAccessors(HashJoinTable hashtable)
3731{
3732 int i;
3733
3734 for (i = 0; i < hashtable->nbatch; ++i)
3735 {
3736 /* Make sure no files are left open. */
3737 sts_end_write(hashtable->batches[i].inner_tuples);
3738 sts_end_write(hashtable->batches[i].outer_tuples);
3739 sts_end_parallel_scan(hashtable->batches[i].inner_tuples);
3740 sts_end_parallel_scan(hashtable->batches[i].outer_tuples);
3741 }
3742 pfree(hashtable->batches);
3743 hashtable->batches = NULL;
3744}
3745
3746/*
3747 * Make sure this backend has up-to-date accessors for the current set of

Calls 3

sts_end_writeFunction · 0.85
sts_end_parallel_scanFunction · 0.85
pfreeFunction · 0.50

Tested by

no test coverage detected