optimized code
This commit is contained in:
parent
83dd68e1ce
commit
5c819f2534
|
@ -449,14 +449,13 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) {
|
||||||
tscTrace("%p update table meta in local cache, continue to process sql and send corresponding subquery", pSql);
|
tscTrace("%p update table meta in local cache, continue to process sql and send corresponding subquery", pSql);
|
||||||
|
|
||||||
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
|
||||||
if (pTableMetaInfo->pTableMeta == NULL){
|
code = tscGetTableMeta(pSql, pTableMetaInfo);
|
||||||
code = tscGetTableMeta(pSql, pTableMetaInfo);
|
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
|
||||||
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
|
return;
|
||||||
return;
|
} else {
|
||||||
} else {
|
assert(code == TSDB_CODE_SUCCESS);
|
||||||
assert(code == TSDB_CODE_SUCCESS);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0) && pTableMetaInfo->vgroupIndex >= 0 && pSql->param != NULL);
|
assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0) && pTableMetaInfo->vgroupIndex >= 0 && pSql->param != NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue