You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package storage
import ( "github.com/chrislusf/seaweedfs/weed/pb/master_pb" )
func (s *Store) CollectErasureCodingHeartbeat() *master_pb.Heartbeat { var ecShardMessages []*master_pb.VolumeEcShardInformationMessage for _, location := range s.Locations { location.ecShardsLock.RLock() for _, ecShards := range location.ecShards { ecShardMessages = append(ecShardMessages, ecShards.ToVolumeInformationMessage()...) } location.ecShardsLock.RUnlock() }
return &master_pb.Heartbeat{ EcShards: ecShardMessages, }
}
|