mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 08:47:46 +02:00
push the ec shard info to master
This commit is contained in:
1 parent
8838176d82
commit
24b8ad9a14
1 file changed
+10
@@ -105,6 +105,16 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
|
||||
|
||||
if len(heartbeat.EcShards) > 0 {
|
||||
glog.V(0).Infof("master recieved ec shards from %s: %+v", dn.Url(), heartbeat.EcShards)
|
||||
newShards, deletedShards := t.SyncDataNodeEcShards(heartbeat.EcShards, dn)
|
||||
|
||||
//TODO broadcast the ec vid
|
||||
if len(newShards)>0{
|
||||
|
||||
}
|
||||
if len(deletedShards)>0{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if len(message.NewVids) > 0 || len(message.DeletedVids) > 0 {
|
||||
|
||||
Reference in new issue
Block a user