Skip to content

Commit

Permalink
fix: remove buffer zero
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Jun 26, 2024
1 parent 690b6db commit 24c9c23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,6 @@ static void *createTable(void *sarg) {

pThreadInfo->tables_created += batchNum;
batchNum = 0;
memset(pThreadInfo->buffer, 0, TSDB_MAX_ALLOWED_SQL_LEN);
uint64_t currentPrintTime = toolsGetTimestampMs();
if (currentPrintTime - lastPrintTime > PRINT_STAT_INTERVAL) {
float speed = (pThreadInfo->tables_created - lastTotalCreate) * 1000 / (currentPrintTime - lastPrintTime);
Expand Down

0 comments on commit 24c9c23

Please sign in to comment.