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

Function insertingDistributedCommitted

src/backend/cdb/cdbtm.c:1527–1536  ·  view source on GitHub ↗

* serializes commits with checkpoint info using PGPROC->inCommit * Change state to DTX_STATE_INSERTING_COMMITTED. */

Source from the content-addressed store, hash-verified

1525 * Change state to DTX_STATE_INSERTING_COMMITTED.
1526 */
1527void
1528insertingDistributedCommitted(void)
1529{
1530 elog(DTM_DEBUG5,
1531 "insertingDistributedCommitted entering in state = %s",
1532 DtxStateToString(MyTmGxactLocal->state));
1533
1534 Assert(MyTmGxactLocal->state == DTX_STATE_PREPARED);
1535 setCurrentDtxState(DTX_STATE_INSERTING_COMMITTED);
1536}
1537
1538/*
1539 * Change state to DTX_STATE_INSERTED_COMMITTED.

Callers 1

XactLogCommitRecordFunction · 0.85

Calls 2

DtxStateToStringFunction · 0.85
setCurrentDtxStateFunction · 0.85

Tested by

no test coverage detected