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

add api_version for mpp task meta #1075

Merged
Merged
Show file tree
Hide file tree
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
160 changes: 100 additions & 60 deletions pkg/mpp/mpp.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions proto/mpp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package mpp;
import "gogoproto/gogo.proto";
import "coprocessor.proto";
import "metapb.proto";
import "kvrpcpb.proto";

option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
Expand All @@ -23,6 +24,7 @@ message TaskMeta {
uint64 server_id = 8; // TiDB server id
int64 mpp_version = 9; // mpp version
uint32 keyspace_id = 10; // keyspace id of the request
kvrpcpb.APIVersion api_version = 16; // API version of the request
}

message IsAliveRequest {
Expand Down
8 changes: 8 additions & 0 deletions scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11268,6 +11268,11 @@
"id": 10,
"name": "keyspace_id",
"type": "uint32"
},
{
"id": 16,
"name": "api_version",
"type": "kvrpcpb.APIVersion"
}
]
},
Expand Down Expand Up @@ -11444,6 +11449,9 @@
},
{
"path": "metapb.proto"
},
{
"path": "kvrpcpb.proto"
}
],
"package": {
Expand Down