Merge branch '3.0' into feature/compressData

This commit is contained in:
yihaoDeng 2024-04-02 00:18:24 +00:00
parent cb27761e66
commit 44e6d225e2
1 changed files with 1 additions and 2 deletions

View File

@ -472,8 +472,7 @@ int32_t cloneTableMeta(STableMeta* pSrc, STableMeta** pDst) {
return TSDB_CODE_OUT_OF_MEMORY;
}
memcpy(*pDst, pSrc, metaSize);
if (useCompress(pSrc->tableType) /* && pSrc->schemaExt*/) {
ASSERT(pSrc->schemaExt == NULL);
if (useCompress(pSrc->tableType) && pSrc->schemaExt) {
(*pDst)->schemaExt = (SSchemaExt*)((char*)*pDst + metaSize);
memcpy((*pDst)->schemaExt, pSrc->schemaExt, schemaExtSize);
} else {