change server address from string to a type

This commit is contained in:
Chris Lu
2021-09-12 22:47:52 -07:00
parent 2c9d4c8f43
commit e5fc35ed0c
128 changed files with 2138 additions and 2082 deletions

View File

@@ -62,6 +62,7 @@ message Heartbeat {
bool has_no_ec_shards = 19;
map<string, uint32> max_volume_counts = 4;
uint32 grpc_port = 20;
}
@@ -127,7 +128,7 @@ message SuperBlockExtra {
message KeepConnectedRequest {
string name = 1;
uint32 grpc_port = 2;
string client_address = 3;
}
message VolumeLocation {
@@ -137,6 +138,7 @@ message VolumeLocation {
repeated uint32 deleted_vids = 4;
string leader = 5; // optional when leader is not itself
string data_center = 6; // optional when DataCenter is in use
uint32 grpc_port = 7;
}
message LookupVolumeRequest {
@@ -156,6 +158,7 @@ message LookupVolumeResponse {
message Location {
string url = 1;
string public_url = 2;
uint32 grpc_port = 3;
}
message AssignRequest {
@@ -172,16 +175,11 @@ message AssignRequest {
}
message AssignResponse {
string fid = 1;
string url = 2;
string public_url = 3;
uint64 count = 4;
string error = 5;
string auth = 6;
message Replica {
string url = 1;
string public_url = 2;
}
repeated Replica replicas = 7;
repeated Location replicas = 7;
Location location = 8;
}
message StatisticsRequest {
@@ -232,6 +230,7 @@ message DiskInfo {
message DataNodeInfo {
string id = 1;
map<string, DiskInfo> diskInfos = 2;
uint32 grpc_port = 3;
}
message RackInfo {
string id = 1;