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

enh: taosBenchmark remove stmt2 retry function #834

Open
wants to merge 2 commits into
base: 3.0
Choose a base branch
from
Open
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: 10 additions & 0 deletions src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,7 @@ void loadChildTableInfo(threadInfo* pThreadInfo) {
tmfree(buf);
}

/*
// create conn again
int32_t reCreateConn(threadInfo * pThreadInfo) {
// single
Expand Down Expand Up @@ -1785,6 +1786,7 @@ int32_t reConnectStmt2(threadInfo * pThreadInfo, int32_t w) {

return code;
}
*/

int32_t submitStmt2Impl(threadInfo * pThreadInfo, TAOS_STMT2_BINDV *bindv, int64_t *delay1, int64_t *delay3,
int64_t* startTs, int64_t* endTs, uint32_t* generated) {
Expand All @@ -1805,6 +1807,13 @@ int32_t submitStmt2Impl(threadInfo * pThreadInfo, TAOS_STMT2_BINDV *bindv, int64
return code;
}

// no retry function submitStmt2
int32_t submitStmt2(threadInfo * pThreadInfo, TAOS_STMT2_BINDV *bindv, int64_t *delay1, int64_t *delay3,
int64_t* startTs, int64_t* endTs, uint32_t* generated, int32_t w) {
return submitStmt2Impl(pThreadInfo, bindv, delay1, delay3, startTs, endTs, generated);
}

/*
int32_t submitStmt2(threadInfo * pThreadInfo, TAOS_STMT2_BINDV *bindv, int64_t *delay1, int64_t *delay3,
int64_t* startTs, int64_t* endTs, uint32_t* generated, int32_t w) {
// calc loop
Expand Down Expand Up @@ -1860,6 +1869,7 @@ int32_t submitStmt2(threadInfo * pThreadInfo, TAOS_STMT2_BINDV *bindv, int64_t *
// success
return 0;
}
*/

static void *syncWriteInterlace(void *sarg) {
threadInfo * pThreadInfo = (threadInfo *)sarg;
Expand Down
Loading