From 8dcd05301eb9fc84093d9a829443c4b5269ec274 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 8 Jun 2022 09:47:50 +0800 Subject: [PATCH] add assert --- source/libs/parser/src/parUtil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/parser/src/parUtil.c b/source/libs/parser/src/parUtil.c index 192a4baf80..e5902dff1d 100644 --- a/source/libs/parser/src/parUtil.c +++ b/source/libs/parser/src/parUtil.c @@ -714,6 +714,8 @@ int32_t getTableVgroupFromCache(SParseMetaCache* pMetaCache, const SName* pName, SVgroupInfo* pVg = NULL; int32_t code = getMetaDataFromHash(fullName, strlen(fullName), pMetaCache->pTableVgroup, (void**)&pVg); if (TSDB_CODE_SUCCESS == code) { + ASSERT(0 != pVg->vgId); + ASSERT(0 != pVg->epSet.eps[pVg->epSet.inUse].fqdn[0]); memcpy(pVgroup, pVg, sizeof(SVgroupInfo)); } return code;