aboutsummaryrefslogtreecommitdiff
path: root/weed/wdclient/masterclient.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-09-16 15:05:38 -0700
committerchrislu <chris.lu@gmail.com>2023-09-16 15:05:38 -0700
commit482742514656e9b5a652acf7406740fbc55db13d (patch)
tree9be51ec65888a0741f63912c9bc125d0278d3360 /weed/wdclient/masterclient.go
parent3b50139f68d5f59961113cf8fd0b903a7294a6ca (diff)
downloadseaweedfs-482742514656e9b5a652acf7406740fbc55db13d.tar.xz
seaweedfs-482742514656e9b5a652acf7406740fbc55db13d.zip
balancer works
Diffstat (limited to 'weed/wdclient/masterclient.go')
-rw-r--r--weed/wdclient/masterclient.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go
index a6ddf22f3..98442c1af 100644
--- a/weed/wdclient/masterclient.go
+++ b/weed/wdclient/masterclient.go
@@ -25,7 +25,7 @@ type MasterClient struct {
currentMaster pb.ServerAddress
currentMasterLock sync.RWMutex
masters pb.ServerDiscovery
- grpcDialOption grpc.DialOption
+ grpcDialOption grpc.DialOption
*vidMap
vidMapCacheSize int
@@ -244,9 +244,9 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedL
if mc.OnPeerUpdate != nil {
if update.FilerGroup == mc.FilerGroup {
if update.IsAdd {
- glog.V(0).Infof("+ %s.%s %s\n", update.FilerGroup, update.NodeType, update.Address)
+ glog.V(0).Infof("+ %s@%s noticed %s.%s %s\n", mc.clientType, mc.clientHost, update.FilerGroup, update.NodeType, update.Address)
} else {
- glog.V(0).Infof("- %s.%s %s\n", update.FilerGroup, update.NodeType, update.Address)
+ glog.V(0).Infof("- %s@%s noticed %s.%s %s\n", mc.clientType, mc.clientHost, update.FilerGroup, update.NodeType, update.Address)
}
stats.MasterClientConnectCounter.WithLabelValues(stats.OnPeerUpdate).Inc()
mc.OnPeerUpdate(update, time.Now())