feat: sql command 'show consumers' and 'show subscriptions'

This commit is contained in:
Xiaoyu Wang 2022-06-23 19:29:28 +08:00
parent bcf477d33f
commit 41ae1e30fa
1 changed files with 2 additions and 1 deletions

View File

@ -564,9 +564,10 @@ class MockCatalogServiceImpl {
int32_t getAllDnodeList(SArray** pDnodes) const { int32_t getAllDnodeList(SArray** pDnodes) const {
SMetaRes res = {0}; SMetaRes res = {0};
catalogGetDnodeList((SArray**)&res.pRes);
*pDnodes = taosArrayInit(1, sizeof(SMetaRes)); *pDnodes = taosArrayInit(1, sizeof(SMetaRes));
taosArrayPush(*pDnodes, &res); taosArrayPush(*pDnodes, &res);
return catalogGetDnodeList((SArray**)&res.pRes); return TSDB_CODE_SUCCESS;
} }
uint64_t id_; uint64_t id_;