-
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
coprocessor: add ddl schema version in request #14317
Conversation
/run-all-tests |
82811ad
to
1f41051
Compare
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
@@ -165,6 +165,7 @@ func (builder *RequestBuilder) SetFromSessionVars(sv *variable.SessionVars) *Req | |||
builder.Request.NotFillCache = sv.StmtCtx.NotFillCache | |||
builder.Request.Priority = builder.getKVPriority(sv) | |||
builder.Request.ReplicaRead = sv.GetReplicaRead() | |||
builder.Request.SchemaVar = sv.TxnCtx.SchemaVersion |
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.
Please update the comment of this function.
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.
Emmm, please update Priority
in comment too.
/run-all-tests |
What problem does this PR solve?
When DDL has changed. TiFlash needs to know the DDL change to decode the correct data. So for TiFlash, it hopes TiDB lets it know the newest schema version in coprocessor request.
What is changed and how it works?
Set the
SchemaVer
forcoprocessor.Request
.Check List
Tests
Code changes
Side effects