fix: return error from vmPutMsgToQueue while vnode-write is disabled

This commit is contained in:
Benguang Zhao 2023-06-16 09:20:34 +08:00
parent b86fc3a697
commit 8663148d6c
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ static int32_t vmPutMsgToQueue(SVnodeMgmt *pMgmt, SRpcMsg *pMsg, EQueueType qtyp
if (pMsg->msgType != TDMT_VND_ALTER_CONFIRM && pVnode->disable) {
dDebug("vgId:%d, msg:%p put into vnode-write queue failed since its disable", pVnode->vgId, pMsg);
terrno = TSDB_CODE_VND_STOPPED;
code = terrno;
break;
}
dGTrace("vgId:%d, msg:%p put into vnode-write queue", pVnode->vgId, pMsg);