broadcast messages of new and deleted volumes

This commit is contained in:
Chris Lu
2018-07-27 23:09:55 -07:00
parent f82ac793b4
commit a12c7b86b0
7 changed files with 251 additions and 77 deletions

View File

@@ -7,9 +7,7 @@ package master_pb;
service Seaweed {
rpc SendHeartbeat (stream Heartbeat) returns (stream HeartbeatResponse) {
}
rpc KeepConnected (stream Empty) returns (stream Empty) {
}
rpc ListenForTopoChange (stream Empty) returns (stream VolumeLocation) {
rpc KeepConnected (stream ClientListenRequest) returns (stream VolumeLocation) {
}
}
@@ -58,8 +56,13 @@ message SuperBlockExtra {
ErasureCoding erasure_coding = 1;
}
message ClientListenRequest {
string name = 1;
}
message VolumeLocation {
string url = 1;
string public_url = 2;
repeated uint32 vid = 3;
repeated uint32 new_vids = 3;
repeated uint32 deleted_vids = 4;
}