send initial list of volume location

This commit is contained in:
Chris Lu committed 2018-07-28 01:17:35 -07:00
1 parent a12c7b86b0
commit e8d4be579d
2 files changed
+29

No files matched your search

+6
View File
@@ -143,6 +143,12 @@ func (ms *MasterServer) KeepConnected(stream master_pb.Seaweed_KeepConnectedServ
ms.clientChansLock.Unlock()
}()
for _, message := range ms.Topo.ToVolumeLocations() {
if err := stream.Send(message); err != nil {
return err
}
}
go func() {
for {
_, err := stream.Recv()