fix:[TD-25756]return error if table not exist
This commit is contained in:
parent
5115a1ac88
commit
0a7ecf9f0c
|
@ -1585,11 +1585,11 @@ static int32_t tmqWriteRawDataImpl(TAOS* taos, void* data, int32_t dataLen) {
|
||||||
strcpy(pName.tname, tbName);
|
strcpy(pName.tname, tbName);
|
||||||
|
|
||||||
code = catalogGetTableMeta(pCatalog, &conn, &pName, &pTableMeta);
|
code = catalogGetTableMeta(pCatalog, &conn, &pName, &pTableMeta);
|
||||||
if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST) {
|
// if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST) {
|
||||||
uError("WriteRaw:catalogGetTableMeta table not exist. table name: %s", tbName);
|
// uError("WriteRaw:catalogGetTableMeta table not exist. table name: %s", tbName);
|
||||||
code = TSDB_CODE_SUCCESS;
|
// code = TSDB_CODE_SUCCESS;
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
uError("WriteRaw:catalogGetTableMeta failed. table name: %s", tbName);
|
uError("WriteRaw:catalogGetTableMeta failed. table name: %s", tbName);
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -1765,11 +1765,11 @@ static int32_t tmqWriteRawMetaDataImpl(TAOS* taos, void* data, int32_t dataLen)
|
||||||
strcpy(pName.tname, pCreateReqDst->ctb.stbName);
|
strcpy(pName.tname, pCreateReqDst->ctb.stbName);
|
||||||
}
|
}
|
||||||
code = catalogGetTableMeta(pCatalog, &conn, &pName, &pTableMeta);
|
code = catalogGetTableMeta(pCatalog, &conn, &pName, &pTableMeta);
|
||||||
if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST) {
|
// if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST) {
|
||||||
uError("WriteRaw:catalogGetTableMeta table not exist. table name: %s", tbName);
|
// uError("WriteRaw:catalogGetTableMeta table not exist. table name: %s", tbName);
|
||||||
code = TSDB_CODE_SUCCESS;
|
// code = TSDB_CODE_SUCCESS;
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
uError("WriteRaw:catalogGetTableMeta failed. table name: %s", tbName);
|
uError("WriteRaw:catalogGetTableMeta failed. table name: %s", tbName);
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue