-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: Txn() function signature refactor and remove ActivePendingTxn() #8327
Conversation
* change Txn() function signature to Txn(active bool) * ActivePendingTxn() is not used any more because Txn() does the work
@@ -207,8 +207,6 @@ func (e *ExecuteExec) Build() error { | |||
var err error | |||
if IsPointGetWithPKOrUniqueKeyByAutoCommit(e.ctx, e.plan) { | |||
err = e.ctx.InitTxnWithStartTS(math.MaxUint64) | |||
} else { | |||
err = e.ctx.ActivePendingTxn() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it missed in the last PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, yes, Prepared Executor is forgot
https://github.com/pingcap/tidb/pull/8260/files#diff-350127760839dbfd52d23927f7ff2d95L290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
/run-all-tests |
/run-all-tests tidb-test=pr/650 |
/run-integration-ddl-test tidb-test=pr/650 |
/run-build |
I can not get the point of this PR. And for the Tests, why do you say "No code". There are a bunch of code changes. |
/run-integration-ddl-test tidb-test=pr/650 |
/rebuild |
/run-all-tests tidb-test=pr/650 |
/run-integration-ddl-test tidb-test=pr/650 |
…ingcap#8327) * change Txn() function signature to Txn(active bool) * ActivePendingTxn() is not used any more because Txn() does the work * change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
What problem does this PR solve?
Clean up after #8260
What is changed and how it works?
Txn()
function signature toTxn(active bool)
ActivePendingTxn()
is not used any more becauseTxn()
does the workgetStartTS() uint64
togetStartTS() (uint64, error)
Check List
Tests
@zz-jason @jackysp @zimulala @winkyao