MCPcopy Index your code
hub / github.com/kopia/kopia / Push

Method Push

internal/cache/persistent_lru_cache.go:245–251  ·  view source on GitHub ↗
(x any)

Source from the content-addressed store, hash-verified

243}
244
245func (h *contentMetadataHeap) Push(x any) {
246 bm := x.(blob.Metadata) //nolint:forcetypeassert
247
248 h.index[bm.BlobID] = len(h.data)
249 h.data = append(h.data, bm)
250 h.totalDataBytes += bm.Length
251}
252
253func (h *contentMetadataHeap) AddOrUpdate(bm blob.Metadata) {
254 if i, exists := h.index[bm.BlobID]; exists {

Callers 3

AddOrUpdateMethod · 0.45
sweepLockedMethod · 0.45
initialScanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected