From 89c417d6fa2b0c3b40ff7cc60ba7cf428402fd99 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 14 Sep 2020 17:51:41 +0800 Subject: [PATCH] [td-1391] --- src/client/src/tscServer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 32a4df4963..f1ef394b8f 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1677,9 +1677,10 @@ int tscProcessTableMetaRsp(SSqlObj *pSql) { pMetaMsg->contLen = htons(pMetaMsg->contLen); pMetaMsg->numOfColumns = htons(pMetaMsg->numOfColumns); - if (pMetaMsg->sid <= 0 || pMetaMsg->vgroup.vgId < 2 || pMetaMsg->vgroup.numOfEps <= 0) { - tscError("invalid value in table numOfEps:%d, vgId:%d sid%d", pMetaMsg->vgroup.numOfEps, - pMetaMsg->vgroup.vgId, pMetaMsg->sid); + if ((pMetaMsg->tableType == TSDB_SUPER_TABLE) && + (pMetaMsg->sid <= 0 || pMetaMsg->vgroup.vgId < 2 || pMetaMsg->vgroup.numOfEps <= 0)) { + tscError("invalid value in table numOfEps:%d, vgId:%d sid%d", pMetaMsg->vgroup.numOfEps, pMetaMsg->vgroup.vgId, + pMetaMsg->sid); return TSDB_CODE_TSC_INVALID_VALUE; } -- GitLab