- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for forceCompact (0.18 sec)
-
cmd/data-usage-cache.go
remove -= removing leaves = leaves[1:] } } // forceCompact will force compact the cache of the top entry. // If the number of children is more than limit*100, it will compact self. // When above the limit a cleanup will also be performed to remove any possible abandoned entries. func (d *dataUsageCache) forceCompact(limit int) { if d == nil || len(d.Cache) <= limit { return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 34.7K bytes - Viewed (0) -
cmd/data-scanner.go
folder := cachedFolder{name: cache.Info.Name, objectHealProbDiv: 1} err := s.scanFolder(ctx, folder, &root) if err != nil { // No useful information... return cache, err } s.newCache.forceCompact(dataScannerCompactAtChildren) s.newCache.Info.LastUpdate = UTCNow() s.newCache.Info.NextCycle = cache.Info.NextCycle return s.newCache, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 21:10:34 UTC 2024 - 48.4K bytes - Viewed (0)