opt index

This commit is contained in:
yihaoDeng 2023-02-03 23:09:21 +08:00
parent a05eb4b110
commit cc4558ff9a
1 changed files with 23 additions and 23 deletions

View File

@ -353,10 +353,11 @@ static int32_t mndProcessCreateIdxReq(SRpcMsg *pReq) {
//}
}
pDb = mndAcquireDbByIdx(pMnode, createReq.idxName);
if (pDb == NULL) {
terrno = TSDB_CODE_MND_DB_NOT_SELECTED;
goto _OVER;
// pDb = mndAcquireDbByIdx(pMnode, createReq.idxName);
// if (pDb == NULL) {
// terrno = TSDB_CODE_MND_DB_NOT_SELECTED;
// goto _OVER;
/ e
}
if (mndCheckDbPrivilege(pMnode, pReq->info.conn.user, MND_OPER_WRITE_DB, pDb) != 0) {
@ -370,8 +371,7 @@ static int32_t mndProcessCreateIdxReq(SRpcMsg *pReq) {
if (code == 0) code = TSDB_CODE_ACTION_IN_PROGRESS;
}
_OVER:
if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) {
_OVER : if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) {
mError("stb:%s, failed to create since %s", createReq.idxName, terrstr());
}