From 8f6e87594fc07228c3ca919cfbc23ee65e3cb829 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 29 Aug 2022 16:33:08 +0800 Subject: [PATCH] enh: not fetch all during commit --- source/dnode/vnode/src/sma/smaRollup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/sma/smaRollup.c b/source/dnode/vnode/src/sma/smaRollup.c index 5b2595ad21..3ed8dc2a20 100644 --- a/source/dnode/vnode/src/sma/smaRollup.c +++ b/source/dnode/vnode/src/sma/smaRollup.c @@ -1715,8 +1715,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) { smaDebug("vgId:%d, batchSize:%d, execType:%" PRIi8, SMA_VID(pSma), qallItemSize, type); } - if (((type == RSMA_EXEC_OVERFLOW) && (atomic_load_8(RSMA_COMMIT_STAT(pRSmaStat)) == 0)) || - (type == RSMA_EXEC_COMMIT)) { + if (atomic_load_8(RSMA_COMMIT_STAT(pRSmaStat)) == 0) { tdRSmaFetchAllResult(pSma, pInfo, pSubmitArr); } -- GitLab