[TD-2433]<fix>: fix the bug that server_status() not working.

This commit is contained in:
Haojun Liao 2020-12-13 22:19:01 +08:00
parent 112ebfa12b
commit 261adee98a
1 changed files with 3 additions and 0 deletions

View File

@ -823,6 +823,9 @@ static int32_t tscProcessClientVer(SSqlObj *pSql) {
// TODO add test cases.
static int32_t checkForOnlineNode(SSqlObj* pSql) {
int32_t* data = pSql->res.length;
if (data == NULL) {
return TSDB_CODE_SUCCESS;
}
int32_t total = data[0];
int32_t online = data[1];