@@ -4587,6 +4587,7 @@ UDPConn::UDPConn(TransportEntry *entry)
45874587 this ->remoteContentId = -1 ;
45884588 this ->remoteHostAndPort [0 ] = ' \0 ' ;
45894589 this ->opaque_data = nullptr ;
4590+ this ->sent_record_typmod = 0 ;
45904591
45914592 /* the field of UDPConn */
45924593 this ->capacity = -1 ;
@@ -4621,6 +4622,7 @@ UDPConn::UDPConn(TransportEntry *entry)
46214622 this ->stopRequested = false ;
46224623 this ->cdbProc = NULL ;
46234624 this ->opaque_data = NULL ;
4625+ this ->sent_record_typmod = 0 ;
46244626
46254627 /*
46264628 * "UDPConn dummyconn(NULL)" will be called by handleMismatch() in rx thread,
@@ -6500,6 +6502,14 @@ CChunkTransportStateImpl::GetOpaqueDataInConn(int16 motNodeID, int16 targetRoute
65006502 return conn->opaque_data ;
65016503}
65026504
6505+ int32*
6506+ CChunkTransportStateImpl::GetSentRecordTypmodInConn (int16 motNodeID, int16 targetRoute)
6507+ {
6508+ TransportEntry *pEntry = this ->GetEntry (motNodeID, true );
6509+ UDPConn *conn = pEntry->GetConn (targetRoute);
6510+ return &conn->sent_record_typmod ;
6511+ }
6512+
65036513int
65046514CChunkTransportStateImpl::GetConnNum (int motNodeID) {
65056515 TransportEntry *pEntry = this ->GetEntry (motNodeID, true );
@@ -6587,6 +6597,11 @@ CChunkTransportState::GetOpaqueDataInConn(int16 motNodeID, int16 targetRoute) {
65876597 return ToDerived (this )->GetOpaqueDataInConn (motNodeID, targetRoute);
65886598}
65896599
6600+ int32*
6601+ CChunkTransportState::GetSentRecordTypmodInConn (int16 motNodeID, int16 targetRoute) {
6602+ return ToDerived (this )->GetSentRecordTypmodInConn (motNodeID, targetRoute);
6603+ }
6604+
65906605int
65916606CChunkTransportState::GetConnNum (int motNodeID) {
65926607 return ToDerived (this )->GetConnNum (motNodeID);
@@ -6848,6 +6863,23 @@ UDP2_GetOpaqueDataInConn(ICChunkTransportState *transportStates,
68486863 return NULL ;
68496864}
68506865
6866+ int32*
6867+ UDP2_GetSentRecordTypmodInConn (ICChunkTransportState *transportStates,
6868+ int16 motNodeID,
6869+ int16 targetRoute)
6870+ {
6871+ Assert (transportStates);
6872+
6873+ try {
6874+ CChunkTransportState *cstate = static_cast <CChunkTransportState*>(transportStates);
6875+ return cstate->GetSentRecordTypmodInConn (motNodeID, targetRoute);
6876+ } catch (...) {
6877+ handleException ();
6878+ }
6879+
6880+ return NULL ;
6881+ }
6882+
68516883void
68526884UDP2_InitUDPIFC (GlobalMotionLayerIPCParam *param)
68536885{
0 commit comments