make commit work

This commit is contained in:
Hongze Cheng 2022-01-10 06:09:03 +00:00
parent 4c6f7d90cd
commit df202e6d5d
1 changed files with 10 additions and 1 deletions

View File

@ -596,8 +596,17 @@ STSchema *metaGetTbTSchema(SMeta *pMeta, tb_uid_t uid, int32_t sver) {
STSchema * pTSchema = NULL;
SSchema * pSchema;
SSchemaWrapper *pSW;
STbCfg * pTbCfg;
tb_uid_t quid;
pSW = metaGetTableSchema(pMeta, uid, sver, true);
pTbCfg = metaGetTbInfoByUid(pMeta, uid);
if (pTbCfg->type == META_CHILD_TABLE) {
quid = pTbCfg->ctbCfg.suid;
} else {
quid = uid;
}
pSW = metaGetTableSchema(pMeta, quid, sver, true);
if (pSW == NULL) {
return NULL;
}