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

Method MakeSubRequest

pkg/proxy/request.go:37–49  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

35}
36
37func (r *Request) MakeSubRequest(n int) []Request {
38 var sub = make([]Request, n)
39 for i := range sub {
40 x := &sub[i]
41 x.Batch = r.Batch
42 x.OpStr = r.OpStr
43 x.OpFlag = r.OpFlag
44 x.Broken = r.Broken
45 x.Database = r.Database
46 x.UnixNano = r.UnixNano
47 }
48 return sub
49}
50
51const GOLDEN_RATIO_PRIME_32 = 0x9e370001
52

Callers 4

handleRequestMGetMethod · 0.80
handleRequestMSetMethod · 0.80
handleRequestDelMethod · 0.80
handleRequestExistsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected