[TD-4823]<fix>: taosdemo getTableName return empty. (#6570)
* [TD-4823]<fix>: taosdemo getTableName return empty. * fix typo.
This commit is contained in:
parent
199f7190be
commit
f1de963dc5
|
@ -6000,6 +6000,12 @@ static void* syncWriteProgressive(threadInfo *pThreadInfo) {
|
||||||
verbosePrint("%s() LN%d: tid=%d seq=%"PRId64" tableName=%s\n",
|
verbosePrint("%s() LN%d: tid=%d seq=%"PRId64" tableName=%s\n",
|
||||||
__func__, __LINE__,
|
__func__, __LINE__,
|
||||||
pThreadInfo->threadID, tableSeq, tableName);
|
pThreadInfo->threadID, tableSeq, tableName);
|
||||||
|
if (0 == strlen(tableName)) {
|
||||||
|
errorPrint("[%d] %s() LN%d, getTableName return null\n",
|
||||||
|
pThreadInfo->threadID, __func__, __LINE__);
|
||||||
|
free(pThreadInfo->buffer);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
int64_t remainderBufLen = maxSqlLen;
|
int64_t remainderBufLen = maxSqlLen;
|
||||||
char *pstr = pThreadInfo->buffer;
|
char *pstr = pThreadInfo->buffer;
|
||||||
|
|
Loading…
Reference in New Issue