Browse Source

weed master: skip proxied file read in http read only mode

pull/902/head
Chris Lu 6 years ago
parent
commit
531add52c2
  1. 4
      weed/server/master_server.go

4
weed/server/master_server.go

@ -93,7 +93,9 @@ func NewMasterServer(r *mux.Router, port int, metaFolder string,
r.HandleFunc("/stats/health", ms.guard.WhiteList(statsHealthHandler))
r.HandleFunc("/stats/counter", ms.guard.WhiteList(statsCounterHandler))
r.HandleFunc("/stats/memory", ms.guard.WhiteList(statsMemoryHandler))
r.HandleFunc("/{fileId}", ms.proxyToLeader(ms.redirectHandler))
if !httpReadOnly {
r.HandleFunc("/{fileId}", ms.proxyToLeader(ms.redirectHandler))
}
ms.Topo.StartRefreshWritableVolumes(ms.grpcDialOpiton, garbageThreshold, ms.preallocate)

Loading…
Cancel
Save