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

Function AtEOXact_Parallel

src/backend/access/transam/parallel.c:1282–1294  ·  view source on GitHub ↗

* End-of-transaction cleanup for parallel contexts. */

Source from the content-addressed store, hash-verified

1280 * End-of-transaction cleanup for parallel contexts.
1281 */
1282void
1283AtEOXact_Parallel(bool isCommit)
1284{
1285 while (!dlist_is_empty(&pcxt_list))
1286 {
1287 ParallelContext *pcxt;
1288
1289 pcxt = dlist_head_element(ParallelContext, node, &pcxt_list);
1290 if (isCommit)
1291 elog(WARNING, "leaked parallel context");
1292 DestroyParallelContext(pcxt);
1293 }
1294}
1295
1296/*
1297 * Main entrypoint for parallel workers.

Callers 2

CommitTransactionFunction · 0.85
AbortTransactionFunction · 0.85

Calls 2

dlist_is_emptyFunction · 0.85
DestroyParallelContextFunction · 0.85

Tested by

no test coverage detected