MCPcopy
hub / github.com/kopia/kopia / aboveSoftLimit

Method aboveSoftLimit

internal/cache/persistent_lru_cache.go:278–280  ·  view source on GitHub ↗

+checklocks:c.listCacheMutex

(extraBytes int64)

Source from the content-addressed store, hash-verified

276
277// +checklocks:c.listCacheMutex
278func (c *PersistentCache) aboveSoftLimit(extraBytes int64) bool {
279 return c.listCache.totalDataBytes+extraBytes+c.pendingWriteBytes > c.sweep.MaxSizeBytes
280}
281
282// +checklocks:c.listCacheMutex
283func (c *PersistentCache) aboveHardLimit(extraBytes int64) bool {

Callers 1

sweepLockedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected