-
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
*: add variables and support external timestamp read #38276
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
f7a8bc5
to
5e95ec2
Compare
sessionctx/variable/session.go
Outdated
@@ -1478,7 +1488,7 @@ func (connInfo *ConnectionInfo) IsSecureTransport() bool { | |||
} | |||
|
|||
// NewSessionVars creates a session vars object. | |||
func NewSessionVars() *SessionVars { | |||
func NewSessionVars(hctx HookContext) *SessionVars { |
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.
Does it necessary to change the definition of NewSessionVars, which introduced so many changes.
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.
5e95ec2
to
be35ab7
Compare
be35ab7
to
c642b43
Compare
81d76b6
to
b8a1718
Compare
b8a1718
to
40737c0
Compare
40737c0
to
720f4a3
Compare
b737ea8
to
dabf247
Compare
dabf247
to
f3282d9
Compare
f3282d9
to
d48f9c8
Compare
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
db7b3ec
to
445d678
Compare
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
445d678
to
24ba369
Compare
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 24ba369
|
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
What problem does this PR solve?
Issue Number: close #38274
Problem Summary:
TiDB doesn't have a way to allow staleread with a timestamp from external (globally).
What is changed and how it works?
tidb_external_ts
) and whether to enable this feature (tidb_enable_external_ts_read
)TODO:
context.Context
. They are allcontext.TODO()
now 😢 . But it can be a little difficult (as the variables hook deep-callchain doesn't pass in a context)context.Context
) for planner preprocess #38359context.Context
) for global variable get/set #38378Check List
Tests
Side effects
Documentation
Release note