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

Method Forward

pkg/proxy/forward.go:35–44  ·  view source on GitHub ↗
(s *Slot, r *Request, hkey []byte)

Source from the content-addressed store, hash-verified

33}
34
35func (d *forwardSync) Forward(s *Slot, r *Request, hkey []byte) error {
36 s.lock.RLock()
37 bc, err := d.process(s, r, hkey)
38 s.lock.RUnlock()
39 if err != nil {
40 return err
41 }
42 bc.PushBack(r)
43 return nil
44}
45
46func (d *forwardSync) process(s *Slot, r *Request, hkey []byte) (*BackendConn, error) {
47 if s.backend.bc == nil {

Callers

nothing calls this directly

Calls 2

processMethod · 0.95
PushBackMethod · 0.45

Tested by

no test coverage detected