diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 106cac9595cb992bfeb9f8bc4412c76be1aa62b0..5639719c159c738b00ad5415f3441b7f6b82490d 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1677,8 +1677,8 @@ int tscProcessTableMetaRsp(SSqlObj *pSql) { pMetaMsg->contLen = htons(pMetaMsg->contLen); pMetaMsg->numOfColumns = htons(pMetaMsg->numOfColumns); - if ((pMetaMsg->tableType == TSDB_SUPER_TABLE) && - (pMetaMsg->sid < 0 || pMetaMsg->vgroup.vgId < 2 || pMetaMsg->vgroup.numOfEps <= 0)) { + 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 tid:%d, name:%s", pMetaMsg->vgroup.numOfEps, pMetaMsg->vgroup.vgId, pMetaMsg->sid, pMetaMsg->tableId); return TSDB_CODE_TSC_INVALID_VALUE;