Merge branch '3.0' into feature/compressData
This commit is contained in:
parent
cb27761e66
commit
44e6d225e2
|
@ -472,8 +472,7 @@ int32_t cloneTableMeta(STableMeta* pSrc, STableMeta** pDst) {
|
||||||
return TSDB_CODE_OUT_OF_MEMORY;
|
return TSDB_CODE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
memcpy(*pDst, pSrc, metaSize);
|
memcpy(*pDst, pSrc, metaSize);
|
||||||
if (useCompress(pSrc->tableType) /* && pSrc->schemaExt*/) {
|
if (useCompress(pSrc->tableType) && pSrc->schemaExt) {
|
||||||
ASSERT(pSrc->schemaExt == NULL);
|
|
||||||
(*pDst)->schemaExt = (SSchemaExt*)((char*)*pDst + metaSize);
|
(*pDst)->schemaExt = (SSchemaExt*)((char*)*pDst + metaSize);
|
||||||
memcpy((*pDst)->schemaExt, pSrc->schemaExt, schemaExtSize);
|
memcpy((*pDst)->schemaExt, pSrc->schemaExt, schemaExtSize);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue