Browse Source

pass reference of master server

SendHeartbeat passes lock by value: weed_server.MasterServer contains
sync.Mutex
pull/664/head
Chris Lu 7 years ago
parent
commit
5b844d7011
  1. 2
      weed/server/master_grpc_server.go

2
weed/server/master_grpc_server.go

@ -11,7 +11,7 @@ import (
"google.golang.org/grpc/peer"
)
func (ms MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {
func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error {
var dn *topology.DataNode
t := ms.Topo
for {

Loading…
Cancel
Save