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

Method MgrtTag

extern/deprecated/redis-test/utils.go:281–296  ·  view source on GitHub ↗
(c, dst *Conn, exists bool)

Source from the content-addressed store, hash-verified

279}
280
281func (u *Unit) MgrtTag(c, dst *Conn, exists bool) {
282 var rsp interface{}
283 defer func() {
284 if x := recover(); x != nil {
285 Panic("slotsmgrttagone: c = %s, key = '%s', dst = %s, error = '%s', rsp = %v", c.Addr(), u.key, dst.Addr(), x, rsp)
286 }
287 }()
288 var err error
289 if rsp, err = c.Do("slotsmgrttagone", dst.Host, dst.Port, Timeout, u.key); err != nil {
290 panic(err)
291 }
292 v := c.Int(rsp)
293 if exists && v == 0 {
294 panic("not exists")
295 }
296}
297
298func (u *Unit) Incr(c *Conn) {
299 var rsp interface{}

Callers

nothing calls this directly

Calls 4

PanicFunction · 0.70
AddrMethod · 0.45
DoMethod · 0.45
IntMethod · 0.45

Tested by

no test coverage detected