From d3e0c738974bb6ecdc1d06fd44273f8eebcf9283 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Sun, 24 Oct 2021 19:51:26 +0800 Subject: [PATCH] code optimization --- src/tsdb/src/tsdbRead.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 1ce8a742fd..ca6d5f2e39 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -2504,7 +2504,7 @@ static bool loadDataBlockFromTableSeq(STsdbQueryHandle* pQueryHandle) { return false; } -// handle data in cache situationP +// handle data in cache situation bool tsdbNextDataBlock(TsdbQueryHandleT pHandle) { STsdbQueryHandle* pQueryHandle = (STsdbQueryHandle*) pHandle; if (pQueryHandle == NULL) { @@ -2620,7 +2620,6 @@ static int32_t doGetExternalRow(STsdbQueryHandle* pQueryHandle, int16_t type, SM pSecQueryHandle = tsdbQueryTablesImpl(pQueryHandle->pTsdb, &cond, pQueryHandle->qId, pMemRef); tfree(cond.colList); if (pSecQueryHandle == NULL) { - terrno = TSDB_CODE_QRY_OUT_OF_MEMORY; goto out_of_memory; } -- GitLab