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

Method aboveHardLimit

internal/cache/persistent_lru_cache.go:283–289  ·  view source on GitHub ↗

+checklocks:c.listCacheMutex

(extraBytes int64)

Source from the content-addressed store, hash-verified

281
282// +checklocks:c.listCacheMutex
283func (c *PersistentCache) aboveHardLimit(extraBytes int64) bool {
284 if c.sweep.LimitBytes <= 0 {
285 return false
286 }
287
288 return c.listCache.totalDataBytes+extraBytes+c.pendingWriteBytes > c.sweep.LimitBytes
289}
290
291// +checklocks:c.listCacheMutex
292func (c *PersistentCache) sweepLocked(ctx context.Context) {

Callers 1

sweepLockedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected