Skip to content

Commit

Permalink
Merge pull request #767 from xinjiempolde/fix/TD-30457-main
Browse files Browse the repository at this point in the history
fix: taosBenchmark crashed at benchArrayPush
  • Loading branch information
DuanKuanJun committed Jul 3, 2024
2 parents 98e8a32 + 8f4e446 commit 47ceba7
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 47ceba7

Please sign in to comment.