From 5daf38c0d56a3be6e25e67807c9218a5d28ed78b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 7 Aug 2023 11:29:54 +0800 Subject: [PATCH] fix:ref is not there --- source/dnode/mgmt/mgmt_vnode/src/vmWorker.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/dnode/mgmt/mgmt_vnode/src/vmWorker.c b/source/dnode/mgmt/mgmt_vnode/src/vmWorker.c index 4ee9a60ae6..44a27fb791 100644 --- a/source/dnode/mgmt/mgmt_vnode/src/vmWorker.c +++ b/source/dnode/mgmt/mgmt_vnode/src/vmWorker.c @@ -114,12 +114,10 @@ static void vmProcessFetchQueue(SQueueInfo *pInfo, STaosQall *qall, int32_t numO const STraceId *trace = &pMsg->info.traceId; dGTrace("vgId:%d, msg:%p get from vnode-fetch queue", pVnode->vgId, pMsg); -// terrno = 0; + terrno = 0; int32_t code = vnodeProcessFetchMsg(pVnode->pImpl, pMsg, pInfo); if (code != 0) { - dGError("vnodeProcessFetchMsg vgId:%d, msg:%p failed code:%s", pVnode->vgId, pMsg, tstrerror(code)); - - if (terrno != 0) { + if (code == -1 && terrno != 0) { code = terrno; }