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

Function notifyCommittedDtxTransactionIsNeeded

src/backend/cdb/cdbtm.c:358–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358bool
359notifyCommittedDtxTransactionIsNeeded(void)
360{
361 if (DistributedTransactionContext != DTX_CONTEXT_QD_DISTRIBUTED_CAPABLE)
362 {
363 elog(DTM_DEBUG5, "notifyCommittedDtxTransaction nothing to do (DistributedTransactionContext = '%s')",
364 DtxContextToString(DistributedTransactionContext));
365 return false;
366 }
367
368 if (!isCurrentDtxActivated())
369 {
370 elog(DTM_DEBUG5, "notifyCommittedDtxTransaction nothing to do (two phase not activated)");
371 return false;
372 }
373
374 return true;
375}
376
377/*
378 * Notify committed a global transaction, called by user commit

Callers 1

CommitTransactionFunction · 0.85

Calls 2

DtxContextToStringFunction · 0.85
isCurrentDtxActivatedFunction · 0.85

Tested by

no test coverage detected