read ec volume shards locations from master

This commit is contained in:
Chris Lu
2019-05-28 00:13:13 -07:00
parent 713596e781
commit 2858a954b3
5 changed files with 291 additions and 106 deletions

View File

@@ -21,6 +21,8 @@ service Seaweed {
}
rpc VolumeList (VolumeListRequest) returns (VolumeListResponse) {
}
rpc LookupEcVolume (LookupEcVolumeRequest) returns (LookupEcVolumeResponse) {
}
}
//////////////////////////////////////////////////
@@ -218,3 +220,15 @@ message VolumeListResponse {
TopologyInfo topology_info = 1;
uint64 volume_size_limit_mb = 2;
}
message LookupEcVolumeRequest {
uint32 volume_id = 1;
}
message LookupEcVolumeResponse {
uint32 volume_id = 1;
message EcShardIdLocation {
uint32 shard_id = 1;
repeated Location locations = 2;
}
repeated EcShardIdLocation shard_id_locations = 2;
}