enh: support drop table with uid
This commit is contained in:
parent
2ea574fa4f
commit
207c7aded0
|
@ -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};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue