Skip to content

Commit

Permalink
fix: modify Field encode name
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Apr 27, 2024
1 parent ce6c202 commit e1cc27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ typedef struct SField {
uint8_t gen; // see GEN_ define

// compress
char decode[COMP_NAME_LEN];
char encode[COMP_NAME_LEN];
char compress[COMP_NAME_LEN];
char level[COMP_NAME_LEN];

Expand Down
2 changes: 1 addition & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static int createSuperTable(SDataBase* database, SSuperTable* stbInfo) {
return 0;
}

uint32_t col_buffer_len = (TSDB_COL_NAME_LEN + 15) * stbInfo->cols->size;
uint32_t col_buffer_len = (TSDB_COL_NAME_LEN + 15 + COMP_NAME_LEN*3) * stbInfo->cols->size;
char *colsBuf = benchCalloc(1, col_buffer_len, false);
char* command = benchCalloc(1, TSDB_MAX_ALLOWED_SQL_LEN, false);
int len = 0;
Expand Down

0 comments on commit e1cc27f

Please sign in to comment.