From ddb326b550615d72f30b0546813a42eae218cb9f Mon Sep 17 00:00:00 2001 From: factosea <285808407@qq.com> Date: Tue, 19 Mar 2024 09:45:19 +0800 Subject: [PATCH] fix: subtable -> super table --- source/libs/catalog/src/ctgCache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/catalog/src/ctgCache.c b/source/libs/catalog/src/ctgCache.c index 6a60f355cf..f794fb7348 100644 --- a/source/libs/catalog/src/ctgCache.c +++ b/source/libs/catalog/src/ctgCache.c @@ -519,7 +519,7 @@ int32_t ctgCopyTbMeta(SCatalog *pCtg, SCtgTbMetaCtx *ctx, SCtgDBCache **pDb, SCt if (tbMeta->tableType != TSDB_CHILD_TABLE) { int32_t schemaExtSize = 0; int32_t metaSize = CTG_META_SIZE(tbMeta); - if (useCompress(tbMeta->tableType)) { + if (tbMeta->schemaExt != NULL) { schemaExtSize = tbMeta->tableInfo.numOfColumns * sizeof(SSchemaExt); } *pTableMeta = taosMemoryCalloc(1, metaSize + schemaExtSize); @@ -528,7 +528,7 @@ int32_t ctgCopyTbMeta(SCatalog *pCtg, SCtgTbMetaCtx *ctx, SCtgDBCache **pDb, SCt } memcpy(*pTableMeta, tbMeta, metaSize); - if (useCompress(tbMeta->tableType)) { + if (tbMeta->schemaExt != NULL) { (*pTableMeta)->schemaExt = (SSchemaExt *)((char *)*pTableMeta + metaSize); memcpy((*pTableMeta)->schemaExt, tbMeta->schemaExt, schemaExtSize); } else {