Skip to content

Commit

Permalink
Merge pull request #769 from xinjiempolde/fix/TD-30457-3.0
Browse files Browse the repository at this point in the history
 fix: taosBenchmark crashed at benchArrayPush.c
  • Loading branch information
DuanKuanJun committed Jul 4, 2024
2 parents 6793c7a + 6874710 commit 4b077b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/benchJsonOpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ static int getDatabaseInfo(tools_cJSON *dbinfos, int index) {
SDataBase *database;
if (index > 0) {
database = benchCalloc(1, sizeof(SDataBase), true);
database->superTbls = benchArrayInit(1, sizeof(SSuperTable));
benchArrayPush(g_arguments->databases, database);
}
database = benchArrayGet(g_arguments->databases, index);
Expand Down

0 comments on commit 4b077b5

Please sign in to comment.