提交 7555a645 编写于 作者: H hjxilinx

add assertion.

上级 44639642
...@@ -4951,6 +4951,7 @@ int32_t vnodeSTableQueryPrepare(SQInfo *pQInfo, SQuery *pQuery, void *param) { ...@@ -4951,6 +4951,7 @@ int32_t vnodeSTableQueryPrepare(SQInfo *pQInfo, SQuery *pQuery, void *param) {
*/ */
void vnodeDecMeterRefcnt(SQInfo *pQInfo) { void vnodeDecMeterRefcnt(SQInfo *pQInfo) {
STableQuerySupportObj *pSupporter = pQInfo->pTableQuerySupporter; STableQuerySupportObj *pSupporter = pQInfo->pTableQuerySupporter;
assert(pSupporter->numOfMeters >= 1);
if (pSupporter == NULL || pSupporter->numOfMeters == 1) { if (pSupporter == NULL || pSupporter->numOfMeters == 1) {
atomic_fetch_sub_32(&pQInfo->pObj->numOfQueries, 1); atomic_fetch_sub_32(&pQInfo->pObj->numOfQueries, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册