提交 8dcd0530 编写于 作者: D dapan1121

add assert

上级 a552e1fc
...@@ -714,6 +714,8 @@ int32_t getTableVgroupFromCache(SParseMetaCache* pMetaCache, const SName* pName, ...@@ -714,6 +714,8 @@ int32_t getTableVgroupFromCache(SParseMetaCache* pMetaCache, const SName* pName,
SVgroupInfo* pVg = NULL; SVgroupInfo* pVg = NULL;
int32_t code = getMetaDataFromHash(fullName, strlen(fullName), pMetaCache->pTableVgroup, (void**)&pVg); int32_t code = getMetaDataFromHash(fullName, strlen(fullName), pMetaCache->pTableVgroup, (void**)&pVg);
if (TSDB_CODE_SUCCESS == code) { if (TSDB_CODE_SUCCESS == code) {
ASSERT(0 != pVg->vgId);
ASSERT(0 != pVg->epSet.eps[pVg->epSet.inUse].fqdn[0]);
memcpy(pVgroup, pVg, sizeof(SVgroupInfo)); memcpy(pVgroup, pVg, sizeof(SVgroupInfo));
} }
return code; return code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册