MCPcopy
hub / github.com/dropbox/godropbox / release

Method release

memcache/sharded_client.go:34–40  ·  view source on GitHub ↗
(rawClient ClientShard, conn net2.ManagedConn)

Source from the content-addressed store, hash-verified

32}
33
34func (c *ShardedClient) release(rawClient ClientShard, conn net2.ManagedConn) {
35 if rawClient.IsValidState() {
36 _ = conn.ReleaseConnection()
37 } else {
38 _ = conn.DiscardConnection()
39 }
40}
41
42func (c *ShardedClient) unmappedError(key string) error {
43 return errors.Newf("Key '%s' does not map to any memcache shard", key)

Callers 9

GetMethod · 0.95
getMultiHelperMethod · 0.95
mutateMethod · 0.95
mutateMultiHelperMethod · 0.95
countMethod · 0.95
flushHelperMethod · 0.95
statHelperMethod · 0.95
versionHelperMethod · 0.95
verbosityHelperMethod · 0.95

Calls 3

IsValidStateMethod · 0.65
ReleaseConnectionMethod · 0.65
DiscardConnectionMethod · 0.65

Tested by

no test coverage detected