Merge pull request #30012 from taosdata/enh/TD-32446

fix(index): opt error code
This commit is contained in:
Simon Guan 2025-03-05 15:21:45 +08:00 committed by GitHub
commit 0b283e43ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -1502,7 +1502,7 @@ static int32_t mndRetrieveSma(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBloc
// sma and tag index comm func // sma and tag index comm func
static int32_t mndProcessDropIdxReq(SRpcMsg *pReq) { static int32_t mndProcessDropIdxReq(SRpcMsg *pReq) {
int ret = mndProcessDropSmaReq(pReq); int ret = mndProcessDropSmaReq(pReq);
if (terrno == TSDB_CODE_MND_TAG_INDEX_ALREADY_EXIST) { if (ret == TSDB_CODE_MND_TAG_INDEX_ALREADY_EXIST || ret == TSDB_CODE_MND_SMA_NOT_EXIST) {
terrno = 0; terrno = 0;
ret = mndProcessDropTagIdxReq(pReq); ret = mndProcessDropTagIdxReq(pReq);
} }