MCPcopy Index your code
hub / github.com/CodisLabs/codis / Retain

Method Retain

pkg/proxy/backend.go:514–522  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

512}
513
514func (p *sharedBackendConnPool) Retain(addr string) *sharedBackendConn {
515 if bc := p.pool[addr]; bc != nil {
516 return bc.Retain()
517 } else {
518 bc = newSharedBackendConn(addr, p)
519 p.pool[addr] = bc
520 return bc
521 }
522}

Callers

nothing calls this directly

Calls 2

newSharedBackendConnFunction · 0.85
RetainMethod · 0.45

Tested by

no test coverage detected