diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-12 22:47:52 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-12 22:47:52 -0700 |
| commit | e5fc35ed0c970fea060a5b3b7a3f5efb5af425d6 (patch) | |
| tree | 3ad0436940263a24ac46d38a60dd1e35b2c1cdfe /weed/pb/master.proto | |
| parent | 2c9d4c8f43c1e95c75fc332ca83d19e33e5da3ac (diff) | |
| download | seaweedfs-e5fc35ed0c970fea060a5b3b7a3f5efb5af425d6.tar.xz seaweedfs-e5fc35ed0c970fea060a5b3b7a3f5efb5af425d6.zip | |
change server address from string to a type
Diffstat (limited to 'weed/pb/master.proto')
| -rw-r--r-- | weed/pb/master.proto | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/weed/pb/master.proto b/weed/pb/master.proto index 561c5ab98..fce3e04ec 100644 --- a/weed/pb/master.proto +++ b/weed/pb/master.proto @@ -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; |
