From d026b922a7a767785fb8b7a32165e227af5b95c2 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 29 Jun 2021 21:47:12 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 4892 taosdemo sub fetch (#6669) * [TD-4892]: taosdemo subscribe fetch result. * fix stbname length. * restrict prefix length. * submit empty * fix minor code. * fix crash if no result file. * decrease few debug print level. --- src/kit/taosdemo/taosdemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index ad5e9a18ee..04b90c505a 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -1221,7 +1221,7 @@ static void fetchResult(TAOS_RES *res, threadInfo* pThreadInfo) { //printf("query result:%s\n", temp); memcpy(databuf + totalLen, temp, len); totalLen += len; - debugPrint("totalLen: %"PRId64"\n", totalLen); + verbosePrint("%s() LN%d, totalLen: %"PRId64"\n", __func__, __LINE__, totalLen); } verbosePrint("%s() LN%d, databuf=%s resultFile=%s\n", @@ -7274,7 +7274,7 @@ static void *superSubscribe(void *sarg) { pThreadInfo->threadID); } - debugPrint("%s() LN%d, [%d] subSqlstr: %s\n", + verbosePrint("%s() LN%d, [%d] subSqlstr: %s\n", __func__, __LINE__, pThreadInfo->threadID, subSqlstr); tsub[tsubSeq] = subscribeImpl( STABLE_CLASS, -- GitLab