add assert

This commit is contained in:
dapan1121 2022-06-08 09:47:50 +08:00
parent a552e1fcca
commit 8dcd05301e
1 changed files with 2 additions and 0 deletions

View File

@ -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;