提交 1c16959a 编写于 作者: G Ganlin Zhao

add log

上级 3bd45fd5
......@@ -834,6 +834,10 @@ static int32_t monBuildConnsTotalSql(char *sql) {
static int32_t monBuildDnodeUptimeSql(char *sql) {
int64_t dnodeUptime = 0;
TAOS_RES *result = taos_query(tsMonitor.conn, "show dnodes");
int32_t code = taos_errno(result);
if (code != TSDB_CODE_SUCCESS) {
monError("failed to execute cmd: show dnodes, reason:%s", tstrerror(code));
}
TAOS_ROW row;
int32_t num_fields = taos_num_fields(result);
......@@ -932,6 +936,10 @@ static int32_t monBuildDnodeVnodesSql(char *sql) {
static int32_t monBuildDnodeMnodeSql(char *sql) {
bool has_mnode = false, has_mnode_row;
TAOS_RES *result = taos_query(tsMonitor.conn, "show mnodes");
int32_t code = taos_errno(result);
if (code != TSDB_CODE_SUCCESS) {
monError("failed to execute cmd: show mnodes, reason:%s", tstrerror(code));
}
TAOS_ROW row;
int32_t num_fields = taos_num_fields(result);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册