Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos #654

Merged
merged 1 commit into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/benchInsertMix.c
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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