Merge pull request #29293 from taosdata/fix/code_error
fix:error rewrite if terrno is not 0
This commit is contained in:
commit
8e5d6d1acd
|
@ -313,7 +313,6 @@ void vnodeProposeWriteMsg(SQueueInfo *pInfo, STaosQall *qall, int32_t numOfMsgs)
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
if (code != TSDB_CODE_MSG_PREPROCESSED) {
|
if (code != TSDB_CODE_MSG_PREPROCESSED) {
|
||||||
vGError("vgId:%d, msg:%p failed to pre-process since %s", vgId, pMsg, tstrerror(code));
|
vGError("vgId:%d, msg:%p failed to pre-process since %s", vgId, pMsg, tstrerror(code));
|
||||||
if (terrno != 0) code = terrno;
|
|
||||||
}
|
}
|
||||||
vnodeHandleProposeError(pVnode, pMsg, code);
|
vnodeHandleProposeError(pVnode, pMsg, code);
|
||||||
rpcFreeCont(pMsg->pCont);
|
rpcFreeCont(pMsg->pCont);
|
||||||
|
|
Loading…
Reference in New Issue