enh: support drop table with uid

This commit is contained in:
kailixu 2024-09-18 19:38:57 +08:00
parent 2ea574fa4f
commit 207c7aded0
2 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,7 @@ int32_t vnodeGetTableMeta(SVnode *pVnode, SRpcMsg *pMsg, bool direct) {
if (reqFromUid) {
uint64_t tbUid = taosStr2UInt64(infoReq.tbName, NULL, 10);
if (errno == ERANGE || tbUid == 0) {
code = TSDB_CODE_PAR_TABLE_NOT_EXIST;
code = TSDB_CODE_TDB_TABLE_NOT_EXIST;
goto _exit3;
}
char tbName[TSDB_TABLE_NAME_LEN + VARSTR_HEADER_SIZE] = {0};

View File

@ -351,6 +351,7 @@ void destoryCatalogReq(SCatalogReq* pCatalogReq) {
#endif
taosArrayDestroy(pCatalogReq->pTableTSMAs);
taosArrayDestroy(pCatalogReq->pTSMAs);
taosArrayDestroy(pCatalogReq->pTableName);
} else {
taosArrayDestroyEx(pCatalogReq->pTableMeta, destoryTablesReq);
taosArrayDestroyEx(pCatalogReq->pTableHash, destoryTablesReq);
@ -359,6 +360,7 @@ void destoryCatalogReq(SCatalogReq* pCatalogReq) {
#endif
taosArrayDestroyEx(pCatalogReq->pTableTSMAs, destoryTablesReq);
taosArrayDestroyEx(pCatalogReq->pTSMAs, destoryTablesReq);
taosArrayDestroyEx(pCatalogReq->pTableName, destoryTablesReq);
}
taosArrayDestroy(pCatalogReq->pUdf);
taosArrayDestroy(pCatalogReq->pIndex);