diff --git a/src/mnode/src/mnodeTable.c b/src/mnode/src/mnodeTable.c index b96ddb52555a4e2b9da0c29af3f1051b341561ad..84a1f659d58d6994940de5b568932403385f004c 100644 --- a/src/mnode/src/mnodeTable.c +++ b/src/mnode/src/mnodeTable.c @@ -1442,7 +1442,7 @@ static SChildTableObj* mnodeDoCreateChildTable(SCMCreateTableMsg *pCreate, SVgOb if (pSuperTable == NULL) { mError("table:%s, corresponding super table:%s does not exist", pCreate->tableId, pTagData->name); mnodeDestroyChildTable(pTable); - terrno = TSDB_CODE_INVALID_TABLE; + terrno = TSDB_CODE_INVALID_TABLE_ID; return NULL; } mnodeDecTableRef(pSuperTable);