Skip to content

Commit

Permalink
Merge pull request #711 from taosdata/feat/TD-26563
Browse files Browse the repository at this point in the history
fix: timestampstart use now with interlace 1
  • Loading branch information
DuanKuanJun authored Oct 13, 2023
2 parents ccdb38e + 6e089c6 commit 93c48d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ static void *syncWriteInterlace(void *sarg) {
int64_t disorderTs = getDisorderTs(stbInfo,
&disorderRange);
char time_string[BIGINT_BUFF_LEN];
if(stbInfo->useNow) {
if(stbInfo->useNow && stbInfo->interlaceRows == 1) {
snprintf(time_string, BIGINT_BUFF_LEN, "now");
} else {
snprintf(time_string, BIGINT_BUFF_LEN, "%"PRId64"",
Expand Down
5 changes: 0 additions & 5 deletions src/benchJsonOpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,11 +889,6 @@ static int getStableInfo(tools_cJSON *dbinfos, int index) {
superTable->interlaceRows = (uint32_t)stbInterlaceRows->valueint;
}

// force set
if(superTable->useNow) {
superTable->interlaceRows = 1;
}

// disorder
tools_cJSON *disorderRatio =
tools_cJSON_GetObjectItem(stbInfo, "disorder_ratio");
Expand Down

0 comments on commit 93c48d1

Please sign in to comment.