Skip to content

Commit

Permalink
fix/TS-5651-skip-sync-heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
cadem committed Jan 2, 2025
1 parent 70f77d9 commit ad4bf2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/dnode/mgmt/node_mgmt/src/dmTransport.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,15 @@ static void dmProcessRpcMsg(SDnode *pDnode, SRpcMsg *pRpc, SEpSet *pEpSet) {

pRpc->info.wrapper = pWrapper;

EQItype itype = IsReq(pRpc) ? RPC_QITEM : DEF_QITEM; // rsp msg is not restricted by tsQueueMemoryUsed
EQItype itype = RPC_QITEM; // rsp msg is not restricted by tsQueueMemoryUsed
if (IsReq(pRpc)) {
if (pRpc->msgType == TDMT_SYNC_HEARTBEAT || pRpc->msgType == TDMT_SYNC_HEARTBEAT_REPLY)
itype = DEF_QITEM;
else
itype = RPC_QITEM;
} else {
itype = DEF_QITEM;
}
code = taosAllocateQitem(sizeof(SRpcMsg), itype, pRpc->contLen, (void **)&pMsg);
if (code) goto _OVER;

Expand Down

0 comments on commit ad4bf2a

Please sign in to comment.