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

Function CheckDebugDtmActionProtocol

src/backend/tcop/postgres.c:1502–1519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1500}
1501
1502static bool
1503CheckDebugDtmActionProtocol(DtxProtocolCommand dtxProtocolCommand,
1504 DtxContextInfo *contextInfo)
1505{
1506 if (Debug_dtm_action_nestinglevel == 0)
1507 {
1508 return (Debug_dtm_action_target == DEBUG_DTM_ACTION_TARGET_PROTOCOL &&
1509 Debug_dtm_action_protocol == dtxProtocolCommand &&
1510 Debug_dtm_action_segment == GpIdentity.segindex);
1511 }
1512 else
1513 {
1514 return (Debug_dtm_action_target == DEBUG_DTM_ACTION_TARGET_PROTOCOL &&
1515 Debug_dtm_action_protocol == dtxProtocolCommand &&
1516 Debug_dtm_action_segment == GpIdentity.segindex &&
1517 Debug_dtm_action_nestinglevel == contextInfo->nestingLevel);
1518 }
1519}
1520
1521static void
1522exec_mpp_dtx_protocol_command(DtxProtocolCommand dtxProtocolCommand,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected