From 24b8ad9a149888186a8d09f5585349cacb4fc8e9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 23 May 2019 23:47:49 -0700 Subject: [PATCH] push the ec shard info to master --- weed/server/master_grpc_server.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.go index bd28a15c8..bc6463251 100644 --- a/weed/server/master_grpc_server.go +++ b/weed/server/master_grpc_server.go @@ -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 {