From 7555a645568ee9c91e80dcd21eeef42e4d1ed02e Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Mon, 2 Mar 2020 00:22:47 +0800 Subject: [PATCH] add assertion. --- src/system/detail/src/vnodeQueryImpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index f64bc86bf7..81946bf029 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -4951,6 +4951,7 @@ int32_t vnodeSTableQueryPrepare(SQInfo *pQInfo, SQuery *pQuery, void *param) { */ void vnodeDecMeterRefcnt(SQInfo *pQInfo) { STableQuerySupportObj *pSupporter = pQInfo->pTableQuerySupporter; + assert(pSupporter->numOfMeters >= 1); if (pSupporter == NULL || pSupporter->numOfMeters == 1) { atomic_fetch_sub_32(&pQInfo->pObj->numOfQueries, 1); -- GitLab