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

Method fillEntryWithConnection

memcache/base_shard_manager.go:301–311  ·  view source on GitHub ↗
(address string, entry *ShardMapping)

Source from the content-addressed store, hash-verified

299}
300
301func (m *BaseShardManager) fillEntryWithConnection(address string, entry *ShardMapping) {
302 conn, err := m.pool.Get("tcp", address)
303 if err != nil {
304 m.logError(err)
305 connErrByAddr.Add(address, 1)
306 entry.ConnErr = err
307 } else {
308 connOkByAddr.Add(address, 1)
309 entry.Connection = conn
310 }
311}

Callers 4

GetShardMethod · 0.95
GetShardsForKeysMethod · 0.95
GetShardsForItemsMethod · 0.95

Calls 2

GetMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected