fix(stream): set the vgId in hb rsp msg.

This commit is contained in:
Haojun Liao 2024-02-21 18:25:35 +08:00
parent 4440243b17
commit bad3730387
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,7 @@
#include "mndTrans.h" #include "mndTrans.h"
typedef struct { typedef struct {
int8_t placeholder; // placeholder SMsgHead head;
} SMStreamHbRspMsg; } SMStreamHbRspMsg;
typedef struct SFailedCheckpointInfo { typedef struct SFailedCheckpointInfo {
@ -359,6 +359,9 @@ int32_t mndProcessStreamHb(SRpcMsg *pReq) {
{ {
SRpcMsg rsp = {.code = 0, .info = pReq->info, .contLen = sizeof(SMStreamHbRspMsg)}; SRpcMsg rsp = {.code = 0, .info = pReq->info, .contLen = sizeof(SMStreamHbRspMsg)};
rsp.pCont = rpcMallocCont(rsp.contLen); rsp.pCont = rpcMallocCont(rsp.contLen);
SMsgHead* pHead = rsp.pCont;
pHead->vgId = htonl(req.vgId);
tmsgSendRsp(&rsp); tmsgSendRsp(&rsp);
pReq->info.handle = NULL; // disable auto rsp pReq->info.handle = NULL; // disable auto rsp