[TD-4240]<fix>: taosdemo subscribe more than max query sql count. (#6154)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
4412c52f27
commit
8e5681f1b0
|
@ -6575,6 +6575,15 @@ static void *superSubscribe(void *sarg) {
|
||||||
if (g_queryInfo.superQueryInfo.sqlCount == 0)
|
if (g_queryInfo.superQueryInfo.sqlCount == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (g_queryInfo.superQueryInfo.sqlCount * pThreadInfo->ntables > MAX_QUERY_SQL_COUNT) {
|
||||||
|
errorPrint("The number %"PRId64" of sql count(%"PRIu64") multiple the table number(%"PRId64") of the thread is more than max query sql count: %d\n",
|
||||||
|
g_queryInfo.superQueryInfo.sqlCount * pThreadInfo->ntables,
|
||||||
|
g_queryInfo.superQueryInfo.sqlCount,
|
||||||
|
pThreadInfo->ntables,
|
||||||
|
MAX_QUERY_SQL_COUNT);
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
if (pThreadInfo->taos == NULL) {
|
if (pThreadInfo->taos == NULL) {
|
||||||
TAOS * taos = NULL;
|
TAOS * taos = NULL;
|
||||||
taos = taos_connect(g_queryInfo.host,
|
taos = taos_connect(g_queryInfo.host,
|
||||||
|
|
Loading…
Reference in New Issue