MCPcopy
hub / github.com/cubefs/cubefs / NewBlockCachePacket

Function NewBlockCachePacket

client/blockcache/bcache/packet.go:276–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274}
275
276func NewBlockCachePacket() *BlockCachePacket {
277 p := new(BlockCachePacket)
278 p.Magic = CacheMagic
279 p.StartT = time.Now().UnixNano()
280 return p
281}
282
283func (p *BlockCachePacket) String() string {
284 return fmt.Sprintf("OpMsg(%v)", p.GetOpMsg())

Callers 3

GetMethod · 0.85
PutMethod · 0.85
EvictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected