|
@ -79,10 +79,10 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ |
|
|
} |
|
|
} |
|
|
if len(heartbeat.NewVolumes) > 0 || len(heartbeat.DeletedVolumes) > 0 { |
|
|
if len(heartbeat.NewVolumes) > 0 || len(heartbeat.DeletedVolumes) > 0 { |
|
|
// process delta volume ids if exists for fast volume id updates
|
|
|
// process delta volume ids if exists for fast volume id updates
|
|
|
for _, volInfo := range heartbeat.NewVolumes{ |
|
|
|
|
|
|
|
|
for _, volInfo := range heartbeat.NewVolumes { |
|
|
message.NewVids = append(message.NewVids, volInfo.Id) |
|
|
message.NewVids = append(message.NewVids, volInfo.Id) |
|
|
} |
|
|
} |
|
|
for _, volInfo := range heartbeat.DeletedVolumes{ |
|
|
|
|
|
|
|
|
for _, volInfo := range heartbeat.DeletedVolumes { |
|
|
message.DeletedVids = append(message.DeletedVids, volInfo.Id) |
|
|
message.DeletedVids = append(message.DeletedVids, volInfo.Id) |
|
|
} |
|
|
} |
|
|
// update master internal volume layouts
|
|
|
// update master internal volume layouts
|
|
|