fix/TD-30989
This commit is contained in:
parent
d80a68512d
commit
fcf32af53f
File diff suppressed because it is too large
Load Diff
|
@ -43,18 +43,15 @@ int32_t mndInitView(SMnode *pMnode) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void mndCleanupView(SMnode *pMnode) {
|
void mndCleanupView(SMnode *pMnode) { mDebug("mnd view cleanup"); }
|
||||||
mDebug("mnd view cleanup");
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t mndProcessCreateViewReq(SRpcMsg *pReq) {
|
int32_t mndProcessCreateViewReq(SRpcMsg *pReq) {
|
||||||
#ifndef TD_ENTERPRISE
|
#ifndef TD_ENTERPRISE
|
||||||
return TSDB_CODE_OPS_NOT_SUPPORT;
|
return TSDB_CODE_OPS_NOT_SUPPORT;
|
||||||
#else
|
#else
|
||||||
SCMCreateViewReq createViewReq = {0};
|
SCMCreateViewReq createViewReq = {0};
|
||||||
if (tDeserializeSCMCreateViewReq(pReq->pCont, pReq->contLen, &createViewReq) != 0) {
|
if (tDeserializeSCMCreateViewReq(pReq->pCont, pReq->contLen, &createViewReq) != 0) {
|
||||||
terrno = TSDB_CODE_INVALID_MSG;
|
TAOS_RETURN(TSDB_CODE_INVALID_MSG);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mInfo("start to create view:%s, sql:%s", createViewReq.fullname, createViewReq.sql);
|
mInfo("start to create view:%s, sql:%s", createViewReq.fullname, createViewReq.sql);
|
||||||
|
@ -65,17 +62,16 @@ int32_t mndProcessCreateViewReq(SRpcMsg *pReq) {
|
||||||
|
|
||||||
int32_t mndProcessDropViewReq(SRpcMsg *pReq) {
|
int32_t mndProcessDropViewReq(SRpcMsg *pReq) {
|
||||||
#ifndef TD_ENTERPRISE
|
#ifndef TD_ENTERPRISE
|
||||||
return TSDB_CODE_OPS_NOT_SUPPORT;
|
return TSDB_CODE_OPS_NOT_SUPPORT;
|
||||||
#else
|
#else
|
||||||
SCMDropViewReq dropViewReq = {0};
|
SCMDropViewReq dropViewReq = {0};
|
||||||
if (tDeserializeSCMDropViewReq(pReq->pCont, pReq->contLen, &dropViewReq) != 0) {
|
if (tDeserializeSCMDropViewReq(pReq->pCont, pReq->contLen, &dropViewReq) != 0) {
|
||||||
terrno = TSDB_CODE_INVALID_MSG;
|
TAOS_RETURN(TSDB_CODE_INVALID_MSG);
|
||||||
return -1;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
mInfo("start to drop view:%s, sql:%s", dropViewReq.name, dropViewReq.sql);
|
mInfo("start to drop view:%s, sql:%s", dropViewReq.name, dropViewReq.sql);
|
||||||
|
|
||||||
return mndProcessDropViewReqImpl(&dropViewReq, pReq);
|
return mndProcessDropViewReqImpl(&dropViewReq, pReq);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,18 +79,16 @@ int32_t mndProcessGetViewMetaReq(SRpcMsg *pReq) {
|
||||||
#ifndef TD_ENTERPRISE
|
#ifndef TD_ENTERPRISE
|
||||||
return TSDB_CODE_OPS_NOT_SUPPORT;
|
return TSDB_CODE_OPS_NOT_SUPPORT;
|
||||||
#else
|
#else
|
||||||
SViewMetaReq req = {0};
|
SViewMetaReq req = {0};
|
||||||
|
|
||||||
if (tDeserializeSViewMetaReq(pReq->pCont, pReq->contLen, &req) != 0) {
|
if (tDeserializeSViewMetaReq(pReq->pCont, pReq->contLen, &req) != 0) {
|
||||||
terrno = TSDB_CODE_INVALID_MSG;
|
TAOS_RETURN(TSDB_CODE_INVALID_MSG);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return mndProcessViewMetaReqImpl(&req, pReq);
|
return mndProcessViewMetaReqImpl(&req, pReq);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32_t mndRetrieveView(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows) {
|
int32_t mndRetrieveView(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows) {
|
||||||
#ifndef TD_ENTERPRISE
|
#ifndef TD_ENTERPRISE
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -107,6 +101,3 @@ void mndCancelGetNextView(SMnode *pMnode, void *pIter) {
|
||||||
SSdb *pSdb = pMnode->pSdb;
|
SSdb *pSdb = pMnode->pSdb;
|
||||||
sdbCancelFetch(pSdb, pIter);
|
sdbCancelFetch(pSdb, pIter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue