Skip to content

Commit 5438961

Browse files
iosmanthusovervenusJmPotatorleungx
authored
pd: add callee_id to RequestHeader (#38)
Co-authored-by: Neil Shen <[email protected]> Co-authored-by: JmPotato <[email protected]> Co-authored-by: Ryan Leung <[email protected]>
1 parent 3654d23 commit 5438961

File tree

3 files changed

+123
-57
lines changed

3 files changed

+123
-57
lines changed

pkg/tsopb/tsopb.pb.go

Lines changed: 113 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/tsopb.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ message RequestHeader {
3737
uint32 keyspace_id = 3;
3838
// keyspace_group_id is the unique id of the keyspace group to which the tenant/keyspace belongs.
3939
uint32 keyspace_group_id = 4;
40+
// callee_id is the ID of the server which the client expects to receive the request.
41+
// such as tso-0, tso-1, pd-0, pd-1 etc.
42+
// This field is used to check if the request is sent to the expected server.
43+
// If it is not matched, the server will return an error.
44+
string callee_id = 5;
4045
}
4146

4247
message ResponseHeader {

scripts/proto.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22872,6 +22872,11 @@
2287222872
"id": 4,
2287322873
"name": "keyspace_group_id",
2287422874
"type": "uint32"
22875+
},
22876+
{
22877+
"id": 5,
22878+
"name": "callee_id",
22879+
"type": "string"
2287522880
}
2287622881
]
2287722882
},

0 commit comments

Comments
 (0)