diff options
| author | Riccardo Bertossa <33728857+rikigigi@users.noreply.github.com> | 2024-08-19 16:44:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 07:44:45 -0700 |
| commit | 6fe86395046cbf48690380746c057f56555b5df8 (patch) | |
| tree | 0fc9172ea8ec9ec9f54def69a9b7ec9a38c86ac1 /weed/server/master_server.go | |
| parent | e50d85c0f3697caf0ff9aca6662d59b4327a8424 (diff) | |
| download | seaweedfs-6fe86395046cbf48690380746c057f56555b5df8.tar.xz seaweedfs-6fe86395046cbf48690380746c057f56555b5df8.zip | |
add http endpoint to get the size of a collection (#5910)
Diffstat (limited to 'weed/server/master_server.go')
| -rw-r--r-- | weed/server/master_server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go index 44a1664c0..ee28f3386 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -146,6 +146,7 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.Se r.HandleFunc("/vol/status", ms.proxyToLeader(ms.guard.WhiteList(ms.volumeStatusHandler))) r.HandleFunc("/vol/vacuum", ms.proxyToLeader(ms.guard.WhiteList(ms.volumeVacuumHandler))) r.HandleFunc("/submit", ms.guard.WhiteList(ms.submitFromMasterServerHandler)) + r.HandleFunc("/collection/info", ms.guard.WhiteList(ms.collectionInfoHandler)) /* r.HandleFunc("/stats/health", ms.guard.WhiteList(statsHealthHandler)) r.HandleFunc("/stats/counter", ms.guard.WhiteList(statsCounterHandler)) |
