Hotfix/sangshuduo/td 4238 taosdemo async for develop (#6171)
* [TD-4238]<fix>: taosdemo async sub. for develop branch. * [TD-4238]<fix>: taosdemo async subscribe subsribe sql command do not use aggregation functions. * cherry pick f5e4cdd1f7cffc4ee04fc7d043e4841bd1dd9961 * [TD-4238]<fix>: taosdemo async subscribe. fix super table sub result file. * fix specified sub sync mode. Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
0a07ea10ad
commit
c69604fdb4
|
@ -6755,9 +6755,14 @@ static void *superSubscribe(void *sarg) {
|
|||
continue;
|
||||
}
|
||||
|
||||
taosMsleep(g_queryInfo.superQueryInfo.subscribeInterval); // ms
|
||||
res = taos_consume(tsub[i]);
|
||||
if (res) {
|
||||
if (g_queryInfo.superQueryInfo.result[pThreadInfo->querySeq][0] != 0) {
|
||||
sprintf(pThreadInfo->fp, "%s-%d",
|
||||
g_queryInfo.superQueryInfo.result[pThreadInfo->querySeq],
|
||||
pThreadInfo->threadID);
|
||||
appendResultToFile(res, pThreadInfo->fp);
|
||||
}
|
||||
if (g_queryInfo.superQueryInfo.result[pThreadInfo->querySeq][0] != 0) {
|
||||
sprintf(pThreadInfo->fp, "%s-%d",
|
||||
g_queryInfo.superQueryInfo.result[pThreadInfo->querySeq],
|
||||
|
@ -6856,9 +6861,15 @@ static void *specifiedSubscribe(void *sarg) {
|
|||
continue;
|
||||
}
|
||||
|
||||
taosMsleep(g_queryInfo.specifiedQueryInfo.subscribeInterval); // ms
|
||||
res = taos_consume(tsub);
|
||||
if (res) {
|
||||
if (g_queryInfo.specifiedQueryInfo.result[pThreadInfo->querySeq][0] != 0) {
|
||||
sprintf(pThreadInfo->fp, "%s-%d",
|
||||
g_queryInfo.specifiedQueryInfo.result[pThreadInfo->querySeq],
|
||||
pThreadInfo->threadID);
|
||||
appendResultToFile(res, pThreadInfo->fp);
|
||||
}
|
||||
|
||||
consumed ++;
|
||||
if ((g_queryInfo.specifiedQueryInfo.subscribeKeepProgress)
|
||||
&& (consumed >=
|
||||
|
|
Loading…
Reference in New Issue