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

Method incrOpFails

pkg/proxy/session.go:656–664  ·  view source on GitHub ↗
(r *Request, err error)

Source from the content-addressed store, hash-verified

654}
655
656func (s *Session) incrOpFails(r *Request, err error) error {
657 if r != nil {
658 e := s.getOpStats(r.OpStr)
659 e.fails.Incr()
660 } else {
661 s.stats.fails.Incr()
662 }
663 return err
664}
665
666func (s *Session) flushOpStats(force bool) {
667 var nano = time.Now().UnixNano()

Callers 3

StartMethod · 0.95
loopReaderMethod · 0.95
loopWriterMethod · 0.95

Calls 2

getOpStatsMethod · 0.95
IncrMethod · 0.45

Tested by

no test coverage detected