fix TD-29562
This commit is contained in:
parent
d21341c943
commit
ee8a96fb42
|
@ -149,13 +149,20 @@ int metaDecodeEntry(SDecoder *pCoder, SMetaEntry *pME) {
|
||||||
metaError("meta/entry: invalide table type: %" PRId8 " decode failed.", pME->type);
|
metaError("meta/entry: invalide table type: %" PRId8 " decode failed.", pME->type);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (TABLE_IS_COL_COMPRESSED(pME->flags)) {
|
if (pME->type == TSDB_SUPER_TABLE) {
|
||||||
if (meteDecodeColCmprEntry(pCoder, pME) < 0) return -1;
|
if (TABLE_IS_COL_COMPRESSED(pME->flags)) {
|
||||||
} else {
|
if (meteDecodeColCmprEntry(pCoder, pME) < 0) return -1;
|
||||||
int8_t type = pME->type;
|
} else {
|
||||||
if (type == TSDB_SUPER_TABLE || type == TSDB_NORMAL_TABLE) {
|
metatInitDefaultSColCmprWrapper(pCoder, &pME->colCmpr, &pME->stbEntry.schemaRow);
|
||||||
SSchemaWrapper *pWrapper = type == TSDB_SUPER_TABLE ? &pME->stbEntry.schemaRow : &pME->ntbEntry.schemaRow;
|
TABLE_SET_COL_COMPRESSED(pME->flags);
|
||||||
metatInitDefaultSColCmprWrapper(pCoder, &pME->colCmpr, pWrapper);
|
}
|
||||||
|
} else if (pME->type == TSDB_NORMAL_TABLE) {
|
||||||
|
if (!tDecodeIsEnd(pCoder)) {
|
||||||
|
uDebug("set type: %d, tableName:%s", pME->type, pME->name);
|
||||||
|
if (meteDecodeColCmprEntry(pCoder, pME) < 0) return -1;
|
||||||
|
} else {
|
||||||
|
uDebug("set default type: %d, tableName:%s", pME->type, pME->name);
|
||||||
|
metatInitDefaultSColCmprWrapper(pCoder, &pME->colCmpr, &pME->ntbEntry.schemaRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue