Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed May 22, 2024
1 parent 3faa6b1 commit 221fb7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,7 @@ int32_t execInsert(threadInfo *pThreadInfo, uint32_t k, int64_t *delay3) {
TAOS_RES * res = NULL;
int32_t code = 0;
uint16_t iface = stbInfo->iface;
int64_t start = 0;

int32_t trying = (stbInfo->keep_trying)?
stbInfo->keep_trying:g_arguments->keep_trying;
Expand Down Expand Up @@ -1310,7 +1311,7 @@ int32_t execInsert(threadInfo *pThreadInfo, uint32_t k, int64_t *delay3) {

case STMT_IFACE:
// add batch
int64_t start = toolsGetTimestampUs();
start = toolsGetTimestampUs();
if (taos_stmt_add_batch(pThreadInfo->conn->stmt) != 0) {
errorPrint("taos_stmt_add_batch() failed! reason: %s\n",
taos_stmt_errstr(pThreadInfo->conn->stmt));
Expand Down

0 comments on commit 221fb7b

Please sign in to comment.