提交 bb772e20 编写于 作者: wmmhello's avatar wmmhello

fix:make version compatible

上级 69499b95
...@@ -924,13 +924,12 @@ static int32_t mndRetrieveTopic(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBl ...@@ -924,13 +924,12 @@ static int32_t mndRetrieveTopic(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBl
}else if(pTopic->subType == TOPIC_SUB_TYPE__TABLE){ }else if(pTopic->subType == TOPIC_SUB_TYPE__TABLE){
SStbObj *pStb = mndAcquireStb(pMnode, pTopic->stbName); SStbObj *pStb = mndAcquireStb(pMnode, pTopic->stbName);
if (pStb == NULL) { if (pStb == NULL) {
terrno = TSDB_CODE_MND_STB_NOT_EXIST; STR_TO_VARSTR(schemaJson, "NULL");
taosMemoryFree(schemaJson); mError("mndRetrieveTopic mndAcquireStb null stbName:%s", pTopic->stbName);
return -1; }else{
schemaToJson(pStb->pColumns, pStb->numOfColumns, schemaJson);
mndReleaseStb(pMnode, pStb);
} }
schemaToJson(pStb->pColumns, pStb->numOfColumns, schemaJson);
mndReleaseStb(pMnode, pStb);
}else{ }else{
STR_TO_VARSTR(schemaJson, "NULL"); STR_TO_VARSTR(schemaJson, "NULL");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册