Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for searchParent (0.18 sec)

  1. cmd/data-usage-cache.go

    	res := make(dataUsageHashMap, len(ch))
    	for k := range ch {
    		res[k] = struct{}{}
    	}
    	return res
    }
    
    // searchParent will search for the parent of h.
    // This is an O(N*N) operation if there is no parent or it cannot be guessed.
    func (d *dataUsageCache) searchParent(h dataUsageHash) *dataUsageHash {
    	want := h.Key()
    	if idx := strings.LastIndexByte(want, '/'); idx >= 0 {
    		if v := d.find(want[:idx]); v != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  2. cmd/data-scanner.go

    				for parent != hashPath(f.updateCache.Info.Name) {
    					e := f.updateCache.find(parent.Key())
    					if e == nil || e.Compacted {
    						foundAny = true
    						break
    					}
    					next := f.updateCache.searchParent(parent)
    					if next == nil {
    						foundAny = true
    						break
    					}
    					parent = *next
    				}
    				if !foundAny {
    					// Add non-compacted empty entry.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
Back to top