Merge pull request #5367 from taosdata/hotfix/sangshuduo/TD-3147-insert-rate-more-than-1s

[TD-3147] <fix>: support insert interval. fix compile incompatible is…
This commit is contained in:
Shuduo Sang 2021-03-06 15:08:08 +08:00 committed by GitHub
commit bfc1b0df34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4232,7 +4232,8 @@ static void* syncWriteWithStb(void *sarg) {
uint64_t st = 0;
uint64_t et = 0;
debugPrint("DEBUG - %s() LN%d insertRows=%ld\n", __func__, __LINE__, superTblInfo->insertRows);
debugPrint("DEBUG - %s() LN%d insertRows=%"PRId64"\n", __func__, __LINE__, superTblInfo->insertRows);
for (int i = 0; i < superTblInfo->insertRows;) {
for (uint32_t tID = winfo->start_table_id; tID <= winfo->end_table_id; tID++) {
@ -4325,7 +4326,6 @@ static void* syncWriteWithStb(void *sarg) {
k++;
totalRowsInserted++;
debugPrint("DEBUG %s() LN%d inserted=%ld k=%d totalRowsInserted=%ld superTblInfo->insertRows=%ld\n", __func__, __LINE__, inserted, k, totalRowsInserted, superTblInfo->insertRows);
if (inserted > superTblInfo->insertRows)
break;
/* if (inserted >= superTblInfo->insertRows