Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pastPrefix (0.29 sec)

  1. cmd/metacache-stream.go

    		return nil
    	}
    	return map[string]string{fmt.Sprintf("%s-metacache-part-%d", ReservedMetadataPrefixLower, b.n): string(v)}
    }
    
    // pastPrefix returns true if the given prefix is before start of the block.
    func (b metacacheBlock) pastPrefix(prefix string) bool {
    	if prefix == "" || strings.HasPrefix(b.First, prefix) {
    		return false
    	}
    	// We have checked if prefix matches, so we can do direct compare.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 07 15:37:12 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    	// Filter
    	if !o.Recursive {
    		entries.o = make(metaCacheEntries, 0, o.Limit)
    		pastPrefix := false
    		err := r.readFn(func(entry metaCacheEntry) bool {
    			if o.Prefix != "" && !strings.HasPrefix(entry.name, o.Prefix) {
    				// We are past the prefix, don't continue.
    				pastPrefix = true
    				return false
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.7K bytes
    - Viewed (0)
Back to top