MCPcopy
hub / github.com/CodisLabs/codis / handleForceGC

Method handleForceGC

cmd/admin/proxy.go:176–184  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

174}
175
176func (t *cmdProxy) handleForceGC(d map[string]interface{}) {
177 c := t.newProxyClient(true)
178
179 log.Debugf("call rpc forcegc to proxy %s", t.addr)
180 if err := c.ForceGC(); err != nil {
181 log.PanicErrorf(err, "call rpc forcegc to proxy %s failed", t.addr)
182 }
183 log.Debugf("call rpc forcegc OK")
184}
185
186func (t *cmdProxy) handleShutdown(d map[string]interface{}) {
187 c := t.newProxyClient(true)

Callers 1

MainMethod · 0.95

Calls 4

newProxyClientMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
ForceGCMethod · 0.45

Tested by

no test coverage detected