From 8a180a33b2f063492bcea85510ed10989de5dc2c Mon Sep 17 00:00:00 2001 From: Liu Jicong Date: Thu, 27 Jan 2022 16:53:40 +0800 Subject: [PATCH] fix query crash --- source/dnode/mnode/impl/src/mndSubscribe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/mnode/impl/src/mndSubscribe.c b/source/dnode/mnode/impl/src/mndSubscribe.c index 2c445a59e3..80ff6fd8bf 100644 --- a/source/dnode/mnode/impl/src/mndSubscribe.c +++ b/source/dnode/mnode/impl/src/mndSubscribe.c @@ -233,7 +233,7 @@ static int32_t mndProcessMqTimerMsg(SMnodeMsg *pMsg) { STransAction action = {0}; action.epSet = pCEp->epSet; action.pCont = buf; - action.contLen = tlen; + action.contLen = sizeof(SMsgHead) + tlen; action.msgType = TDMT_VND_MQ_SET_CONN; mndTransAppendRedoAction(pTrans, &action);