-
Notifications
You must be signed in to change notification settings - Fork 233
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
Delete txn scope code #1587
base: master
Are you sure you want to change the base?
Delete txn scope code #1587
Conversation
Signed-off-by: ekexium <[email protected]>
72d2742
to
cf6688e
Compare
Signed-off-by: ekexium <[email protected]>
cf6688e
to
13eacc3
Compare
Signed-off-by: ekexium <[email protected]>
Signed-off-by: ekexium <[email protected]>
ebcff5c
to
53fe1c7
Compare
Signed-off-by: ekexium <[email protected]>
53fe1c7
to
4ab4b5f
Compare
@JmPotato PTAL |
config/config.go
Outdated
TxnScope string | ||
EnableAsyncCommit bool | ||
Enable1PC bool | ||
// FIXME: rename |
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.
Can you provide more explanation about this comment?
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.
Updated
// Option represents available options for the oracle.Oracle. | ||
// TODO: remove this struct | ||
type Option struct { | ||
TxnScope string | ||
} |
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.
Why not just remove it in this 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.
To minimize the change.. It has hundreds of usages. I prefer keeping this PR (relatively) small
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.
Generally LGTM, any plan to deprecate (or rename) oracle.GlobalTxnScope
?
Signed-off-by: ekexium <[email protected]>
Signed-off-by: ekexium <[email protected]>
Yes, I think it's the last step. After we deprecated txn-scope related code, we can rename those left to names like |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zyguan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Part of pingcap/tidb#58838
Some changes that I'm not sure about:
TestMinSafeTsFromMixed1
andTestMinSafeTsFromMixed2
updateGlobalTxnScopeTSFromPD