Merge pull request #29510 from taosdata/fix/TS-5651-refactor
fix/TS-5651-refactor
This commit is contained in:
commit
1bc4862cfa
|
@ -255,14 +255,8 @@ static void dmProcessRpcMsg(SDnode *pDnode, SRpcMsg *pRpc, SEpSet *pEpSet) {
|
||||||
pRpc->info.wrapper = pWrapper;
|
pRpc->info.wrapper = pWrapper;
|
||||||
|
|
||||||
EQItype itype = RPC_QITEM; // rsp msg is not restricted by tsQueueMemoryUsed
|
EQItype itype = RPC_QITEM; // rsp msg is not restricted by tsQueueMemoryUsed
|
||||||
if (IsReq(pRpc)) {
|
if (IsReq(pRpc) && pRpc->msgType != TDMT_SYNC_HEARTBEAT && pRpc->msgType != TDMT_SYNC_HEARTBEAT_REPLY)
|
||||||
if (pRpc->msgType == TDMT_SYNC_HEARTBEAT || pRpc->msgType == TDMT_SYNC_HEARTBEAT_REPLY)
|
|
||||||
itype = DEF_QITEM;
|
|
||||||
else
|
|
||||||
itype = RPC_QITEM;
|
itype = RPC_QITEM;
|
||||||
} else {
|
|
||||||
itype = DEF_QITEM;
|
|
||||||
}
|
|
||||||
code = taosAllocateQitem(sizeof(SRpcMsg), itype, pRpc->contLen, (void **)&pMsg);
|
code = taosAllocateQitem(sizeof(SRpcMsg), itype, pRpc->contLen, (void **)&pMsg);
|
||||||
if (code) goto _OVER;
|
if (code) goto _OVER;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue