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

Function IsInParallelMode

src/backend/access/transam/xact.c:1289–1293  ·  view source on GitHub ↗

* IsInParallelMode * * Are we in a parallel operation, as either the leader or a worker? Check * this to prohibit operations that change backend-local state expected to * match across all workers. Mere caches usually don't require such a * restriction. State modified in a strict push/pop fashion, such as the * active snapshot stack, is often fine. */

Source from the content-addressed store, hash-verified

1287 * active snapshot stack, is often fine.
1288 */
1289bool
1290IsInParallelMode(void)
1291{
1292 return CurrentTransactionState->parallelModeLevel != 0;
1293}
1294
1295/*
1296 * CommandCounterIncrement

Callers 15

standard_ProcessUtilityFunction · 0.85
RelationMapUpdateMapFunction · 0.85
set_config_optionFunction · 0.85
ExecSetVariableStmtFunction · 0.85
GetTransactionSnapshotFunction · 0.85
GetLatestSnapshotFunction · 0.85
DeleteChildTargetLocksFunction · 0.85
CreatePredicateLockFunction · 0.85
ReleasePredicateLocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected