fix(sync): enqueue timer msg

This commit is contained in:
Minghao Li 2022-10-12 15:35:15 +08:00
parent 69b7348efc
commit 3416ee66d8
1 changed files with 4 additions and 0 deletions

View File

@ -474,6 +474,10 @@ int32_t vnodeProcessSyncMsg(SVnode *pVnode, SRpcMsg *pMsg, SRpcMsg **pRsp) {
}
static int32_t vnodeSyncEqMsg(const SMsgCb *msgcb, SRpcMsg *pMsg) {
if (msgcb == NULL) {
return -1;
}
int32_t code = tmsgPutToQueue(msgcb, SYNC_QUEUE, pMsg);
if (code != 0) {
rpcFreeCont(pMsg->pCont);