From 5b844d70113c414724e7ada2d57c291087173a84 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 27 May 2018 11:58:00 -0700 Subject: [PATCH] pass reference of master server SendHeartbeat passes lock by value: weed_server.MasterServer contains sync.Mutex --- weed/server/master_grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.go index 12ef9e927..d9b8f9e09 100644 --- a/weed/server/master_grpc_server.go +++ b/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 {