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

Function getDistributedTransactionId

src/backend/cdb/cdbtm.c:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 */
169
170DistributedTransactionId
171getDistributedTransactionId(void)
172{
173 if (isDtxContext())
174 return MyTmGxact->gxid;
175 else
176 return InvalidDistributedTransactionId;
177}
178
179bool
180getDistributedTransactionIdentifier(char *id)

Calls 1

isDtxContextFunction · 0.85

Tested by

no test coverage detected