call processTableSchemaFromMetaData when success

This commit is contained in:
slzhou 2023-10-19 13:22:28 +08:00
parent 8532227a36
commit 334feb199a
1 changed files with 5 additions and 4 deletions

View File

@ -2089,12 +2089,13 @@ static int32_t setVnodeModifOpStmt(SInsertParseContext* pCxt, SCatalogReq* pCata
if (code == TSDB_CODE_SUCCESS && pStmt->pTableMeta->tableType == TSDB_SUPER_TABLE && !pStmt->usingTableProcessing) { if (code == TSDB_CODE_SUCCESS && pStmt->pTableMeta->tableType == TSDB_SUPER_TABLE && !pStmt->usingTableProcessing) {
pStmt->stbSyntax = true; pStmt->stbSyntax = true;
} }
} if (code == TSDB_CODE_SUCCESS) {
if (pStmt->usingTableProcessing || pStmt->stbSyntax) { if (pStmt->usingTableProcessing || pStmt->stbSyntax) {
return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, true); return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, true);
} }
return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, false); return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, false);
} }
}
static int32_t resetVnodeModifOpStmt(SInsertParseContext* pCxt, SQuery* pQuery) { static int32_t resetVnodeModifOpStmt(SInsertParseContext* pCxt, SQuery* pQuery) {
nodesDestroyNode(pQuery->pRoot); nodesDestroyNode(pQuery->pRoot);