* Free the current set of ParallelHashJoinBatchAccessor objects. */
| 3727 | * Free the current set of ParallelHashJoinBatchAccessor objects. |
| 3728 | */ |
| 3729 | static void |
| 3730 | ExecParallelHashCloseBatchAccessors(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 |
no test coverage detected