fix:error rewrite if terrno is not 0

This commit is contained in:
wangmm0220 2024-12-24 09:54:05 +08:00
parent 56079acc5f
commit f9976c75ef
1 changed files with 0 additions and 1 deletions

View File

@ -313,7 +313,6 @@ void vnodeProposeWriteMsg(SQueueInfo *pInfo, STaosQall *qall, int32_t numOfMsgs)
if (code != 0) {
if (code != TSDB_CODE_MSG_PREPROCESSED) {
vGError("vgId:%d, msg:%p failed to pre-process since %s", vgId, pMsg, tstrerror(code));
if (terrno != 0) code = terrno;
}
vnodeHandleProposeError(pVnode, pMsg, code);
rpcFreeCont(pMsg->pCont);