| 356 | } |
| 357 | |
| 358 | bool |
| 359 | notifyCommittedDtxTransactionIsNeeded(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 |
no test coverage detected