Skip to content

Commit

Permalink
fix: typos (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangshuduo committed May 2, 2023
1 parent 26e30a6 commit 50c685c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/benchInsertMix.c
Expand Up @@ -48,13 +48,13 @@ typedef struct {
// need generate count , calc from stb->insertRows * ratio
uint64_t genCnt[MCNT];

// status aleady done count
// status already done count
uint64_t doneCnt[MCNT];

// task out from batch to list buffer
TSKEY* buf[MCNT];

// bufer cnt
// buffer cnt
uint64_t capacity[MCNT]; // capacity size for buf
uint64_t bufCnt[MCNT]; // current valid cnt in buf

Expand Down Expand Up @@ -124,7 +124,7 @@ void mixRatioExit(SMixRatio* mix) {
// --------------------- util ----------------
//

// return true can do execute delelte sql
// return true can do execute delete sql
bool needExecDel(SMixRatio* mix) {
if (mix->genCnt[MDEL] == 0 || mix->doneCnt[MDEL] >= mix->genCnt[MDEL]) {
return false;
Expand Down Expand Up @@ -708,7 +708,7 @@ bool checkCorrect(threadInfo* info, SDataBase* db, SSuperTable* stb, char* tbNam
return false;
}
if (count != calcCount) {
errorPrint("checkCorrect query count unexpect, tbname=%s query=%" PRId64 " expect=%" PRId64, tbName, count,
errorPrint("checkCorrect query count unexpected, tbname=%s query=%" PRId64 " expect=%" PRId64, tbName, count,
calcCount);

return false;
Expand All @@ -735,7 +735,7 @@ bool checkCorrect(threadInfo* info, SDataBase* db, SSuperTable* stb, char* tbNam

// check count correct
if (ts != lastTs) {
errorPrint("checkCorrect query last unexpect, tbname=%s query last=%" PRId64 " expect=%" PRId64, tbName, ts,
errorPrint("checkCorrect query last unexpected, tbname=%s query last=%" PRId64 " expect=%" PRId64, tbName, ts,
lastTs);
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/benchJsonOpt.c
Expand Up @@ -322,7 +322,7 @@ static int getDatabaseInfo(tools_cJSON *dbinfos, int index) {
SDbCfg* cfg = benchCalloc(1, sizeof(SDbCfg), true);
cfg->name = cfg_object->string;

// get duration vallue
// get duration value
if (0 == strcasecmp(cfg_object->string, "duration")) {
database->durMinute = getDurationVal(cfg_object);
}
Expand Down Expand Up @@ -707,7 +707,7 @@ static int getStableInfo(tools_cJSON *dbinfos, int index) {
superTable->startTimestamp =
toolsGetTimestamp(database->precision);
superTable->useNow = true;
// fill time with now conflict wih check_sql
// fill time with now conflict with check_sql
g_arguments->check_sql = false;
} else {
if (toolsParseTime(ts->valuestring,
Expand Down

0 comments on commit 50c685c

Please sign in to comment.