aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-03-06 12:10:45 -0800
committerChris Lu <chris.lu@gmail.com>2019-03-06 12:10:45 -0800
commit4773497d2c2a96990cd68e841675405db26353cb (patch)
tree8f0a676cec0d01468a622afa64a67585d99c2746 /weed/command/master.go
parente71e0db5b7bb3001caeb8ec1da31028a3a5b9b42 (diff)
downloadseaweedfs-4773497d2c2a96990cd68e841675405db26353cb.tar.xz
seaweedfs-4773497d2c2a96990cd68e841675405db26353cb.zip
add back "/cluster/status"
fix https://github.com/chrislusf/seaweedfs/issues/870
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index cc6818967..4207a331c 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -97,6 +97,7 @@ func runMaster(cmd *Command, args []string) bool {
raftServer := weed_server.NewRaftServer(security.LoadClientTLS(viper.Sub("grpc"), "master"),
peers, myMasterAddress, *metaFolder, ms.Topo, *mpulse)
ms.SetRaftServer(raftServer)
+ r.HandleFunc("/cluster/status", raftServer.StatusHandler).Methods("GET")
// starting grpc server
grpcPort := *mport + 10000