MCPcopy
hub / github.com/grafana/tempo / needsCopy

Function needsCopy

tempodb/backend/cache/cache.go:231–233  ·  view source on GitHub ↗

needsCopy returns true if the role should be copied into a new buffer before being written to the cache todo: should this be signalled through cacheinfo instead?

(role cache.Role)

Source from the content-addressed store, hash-verified

229// needsCopy returns true if the role should be copied into a new buffer before being written to the cache
230// todo: should this be signalled through cacheinfo instead?
231func needsCopy(role cache.Role) bool {
232 return role == cache.RoleParquetPage // parquet pages are reused by the library. if we don't copy them then the buffer may be reused before written to cache
233}

Callers 1

storeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected