From 5e9909cd64ee0731f086fc47d4ae5e2b2385b0b7 Mon Sep 17 00:00:00 2001 From: dmchen Date: Thu, 29 Aug 2024 01:09:57 +0000 Subject: [PATCH] fix/TD-31686-remove-wrong-log-error --- source/libs/monitor/src/monMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/monitor/src/monMain.c b/source/libs/monitor/src/monMain.c index 4abc8958df..14d62fbf0e 100644 --- a/source/libs/monitor/src/monMain.c +++ b/source/libs/monitor/src/monMain.c @@ -132,7 +132,8 @@ int32_t monInit(const SMonCfg *pCfg) { } void monInitVnode() { - if (tsEnableMonitor && tsMonitorFqdn[0] != 0 && tsMonitorPort != 0 && tsInsertCounter == NULL) { + if (!tsEnableMonitor || tsMonitorFqdn[0] == 0 || tsMonitorPort == 0) return; + if (tsInsertCounter == NULL) { taos_counter_t *counter = NULL; int32_t label_count = 7; const char *sample_labels[] = {VNODE_METRIC_TAG_NAME_SQL_TYPE, VNODE_METRIC_TAG_NAME_CLUSTER_ID,