MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / isCompacted

Method isCompacted

cmd/data-usage-cache.go:440–446  ·  view source on GitHub ↗

isCompacted returns whether an entry is compacted. Returns false if not found.

(h dataUsageHash)

Source from the content-addressed store, hash-verified

438// isCompacted returns whether an entry is compacted.
439// Returns false if not found.
440func (d *dataUsageCache) isCompacted(h dataUsageHash) bool {
441 due, ok := d.Cache[h.Key()]
442 if !ok {
443 return false
444 }
445 return due.Compacted
446}
447
448// findChildrenCopy returns a copy of the children of the supplied hash.
449func (d *dataUsageCache) findChildrenCopy(h dataUsageHash) dataUsageHashMap {

Callers 1

scanFolderMethod · 0.80

Calls 1

KeyMethod · 0.45

Tested by

no test coverage detected