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

This commit is contained in:
Xiaoyu Wang 2022-06-23 19:29:28 +08:00 committed by cpwu
parent 9bcc0cd302
commit 2c2b36680c
1 changed files with 2 additions and 1 deletions

View File

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