remove debug codes add by hjliao

This commit is contained in:
Shengliang Guan 2020-10-21 03:37:24 +00:00
parent 374987e039
commit 196b03f1bd
2 changed files with 0 additions and 48 deletions

View File

@ -590,18 +590,6 @@ static UNUSED_FUNC bool tscKillQueryInDnode(SSqlObj* pSql) {
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, 0);
if (pQueryInfo != 0) {
STableMetaInfo *pTableMetaInfo1 = tscGetMetaInfo(pQueryInfo, 0);
if (pTableMetaInfo1 != NULL) {
// for select query super table, the super table vgroup list can not be null in any cases.
if (pQueryInfo->command == TSDB_SQL_SELECT && UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo1)) {
if (pTableMetaInfo1->pVgroupTables == 0) {
tscError("error !!!%p, vgroupTable is null", pSql);
}
}
}
}
if ((pQueryInfo == NULL) || tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
return true;
}
@ -716,18 +704,6 @@ static void tscKillSTableQuery(SSqlObj *pSql) {
SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
if (pQueryInfo != 0) {
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
if (pTableMetaInfo != NULL) {
// for select query super table, the super table vgroup list can not be null in any cases.
if (pQueryInfo->command == TSDB_SQL_SELECT && UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo)) {
if (pTableMetaInfo->pVgroupTables == 0) {
tscError("error !!!%p, vgroupTable is null", pSql);
}
}
}
}
if (!tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
return;
}
@ -777,18 +753,6 @@ void taos_stop_query(TAOS_RES *res) {
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
if (pQueryInfo != 0) {
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
if (pTableMetaInfo != NULL) {
// for select query super table, the super table vgroup list can not be null in any cases.
if (pQueryInfo->command == TSDB_SQL_SELECT && UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo)) {
if (pTableMetaInfo->pVgroupTables == 0) {
tscError("error !!!%p, vgroupTable is null", pSql);
}
}
}
}
if (tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
assert(pSql->pRpcCtx == NULL);
tscKillSTableQuery(pSql);

View File

@ -2098,18 +2098,6 @@ void tscDoQuery(SSqlObj* pSql) {
} else {
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
uint16_t type = pQueryInfo->type;
if (pQueryInfo != 0) {
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0);
if (pTableMetaInfo != NULL) {
// for select query super table, the super table vgroup list can not be null in any cases.
if (pQueryInfo->command == TSDB_SQL_SELECT && UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo)) {
if (pTableMetaInfo->pVgroupTables == 0) {
tscError("error !!!%p, vgroupTable is null", pSql);
}
}
}
}
if (pSql->fp == (void(*)())tscHandleMultivnodeInsert) { // multi-vnodes insertion
tscHandleMultivnodeInsert(pSql);