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

Function doInsertForgetCommitted

src/backend/cdb/cdbtm.c:533–548  ·  view source on GitHub ↗

* Insert FORGET COMMITTED into the xlog. */

Source from the content-addressed store, hash-verified

531 * Insert FORGET COMMITTED into the xlog.
532 */
533static XLogRecPtr
534doInsertForgetCommitted(void)
535{
536 XLogRecPtr recptr;
537
538 elog(DTM_DEBUG5, "doInsertForgetCommitted entering in state = %s", DtxStateToString(MyTmGxactLocal->state));
539
540 setCurrentDtxState(DTX_STATE_INSERTING_FORGET_COMMITTED);
541
542 recptr = RecordDistributedForgetCommitted(getDistributedTransactionId());
543
544 setCurrentDtxState(DTX_STATE_INSERTED_FORGET_COMMITTED);
545 MyTmGxact->includeInCkpt = false;
546
547 return recptr;
548}
549
550static void
551doNotifyingOnePhaseCommit(void)

Callers 1

Calls 4

DtxStateToStringFunction · 0.85
setCurrentDtxStateFunction · 0.85

Tested by

no test coverage detected