This commit is contained in:
dmchen 2024-07-22 11:50:19 +00:00
parent e8fef13d39
commit 5103b7dab7
1 changed files with 4 additions and 6 deletions

View File

@ -2900,11 +2900,8 @@ static int32_t mndProcessTableMetaReq(SRpcMsg *pReq) {
STableMetaRsp metaRsp = {0}; STableMetaRsp metaRsp = {0};
SUserObj *pUser = mndAcquireUser(pMnode, pReq->info.conn.user); SUserObj *pUser = mndAcquireUser(pMnode, pReq->info.conn.user);
if (pUser == NULL) { //TODO why return 0 here
code = TSDB_CODE_MND_RETURN_VALUE_NULL; if (pUser == NULL) return 0;
if (terrno != 0) code = terrno;
TAOS_RETURN(code);
}
bool sysinfo = pUser->sysInfo; bool sysinfo = pUser->sysInfo;
TAOS_CHECK_GOTO(tDeserializeSTableInfoReq(pReq->pCont, pReq->contLen, &infoReq), NULL, _OVER); TAOS_CHECK_GOTO(tDeserializeSTableInfoReq(pReq->pCont, pReq->contLen, &infoReq), NULL, _OVER);
@ -2946,7 +2943,8 @@ _OVER:
mndReleaseUser(pMnode, pUser); mndReleaseUser(pMnode, pUser);
tFreeSTableMetaRsp(&metaRsp); tFreeSTableMetaRsp(&metaRsp);
TAOS_RETURN(code); //TODO change to TAOS_RETURN
return code;
} }
static int32_t mndProcessTableCfgReq(SRpcMsg *pReq) { static int32_t mndProcessTableCfgReq(SRpcMsg *pReq) {