From 24c9c236751494adf0153d6b7f88ae266435f0de Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 26 Jun 2024 14:08:35 +0800 Subject: [PATCH] fix: remove buffer zero --- src/benchInsert.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/benchInsert.c b/src/benchInsert.c index 002ace31..83e91f38 100644 --- a/src/benchInsert.c +++ b/src/benchInsert.c @@ -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);