Skip to content

Commit

Permalink
Merge pull request #768 from taosdata/3.0
Browse files Browse the repository at this point in the history
3.0 merge to main branch
  • Loading branch information
DuanKuanJun authored Jun 28, 2024
2 parents 6d74823 + 6793c7a commit 98e8a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ void *syncWriteProgressive(void *sarg) {
int64_t delay3 = 0;
if (stmt) {
taos_stmt_close(pThreadInfo->conn->stmt);
if(stbInfo->autoTblCreating) {
if(stbInfo->autoTblCreating || database->superTbls->size > 1) {
pThreadInfo->conn->stmt = taos_stmt_init(pThreadInfo->conn->taos);
} else {
TAOS_STMT_OPTIONS op;
Expand Down Expand Up @@ -3431,7 +3431,7 @@ int32_t initInsertThread(SDataBase* database, SSuperTable* stbInfo, int32_t nthr
goto END;
}
taos_stmt_close(pThreadInfo->conn->stmt);
if(stbInfo->autoTblCreating) {
if (stbInfo->autoTblCreating || database->superTbls->size > 1) {
pThreadInfo->conn->stmt = taos_stmt_init(pThreadInfo->conn->taos);
} else {
TAOS_STMT_OPTIONS op;
Expand Down

0 comments on commit 98e8a32

Please sign in to comment.