From 9e7f6703761e8664494ff7b4c1036cf71edc67b1 Mon Sep 17 00:00:00 2001 From: haojun Liao Date: Thu, 9 Jan 2020 14:11:26 +0800 Subject: [PATCH] fix bugs avoiding two super table join crash fix bugs avoiding two super table join crashed. --- src/system/detail/src/mgmtSupertableQuery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/detail/src/mgmtSupertableQuery.c b/src/system/detail/src/mgmtSupertableQuery.c index f83ffd4247..1b7ae66e6d 100644 --- a/src/system/detail/src/mgmtSupertableQuery.c +++ b/src/system/detail/src/mgmtSupertableQuery.c @@ -329,7 +329,7 @@ int32_t mgmtDoJoin(SMetricMetaMsg* pMetricMetaMsg, tQueryResultset* pRes) { bool allEmpty = false; for (int32_t i = 0; i < pMetricMetaMsg->numOfMeters; ++i) { - if (pRes->num == 0) { // all results are empty if one of them is empty + if (pRes[i].num == 0) { // all results are empty if one of them is empty allEmpty = true; break; }