Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/metacache-stream.go

    		return false
    	}
    	// We have checked if prefix matches, so we can do direct compare.
    	return b.First > prefix
    }
    
    // endedPrefix returns true if the given prefix ends within the block.
    func (b metacacheBlock) endedPrefix(prefix string) bool {
    	if prefix == "" || strings.HasPrefix(b.Last, prefix) {
    		return false
    	}
    
    	// We have checked if prefix matches, so we can do direct compare.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    			bi, err := getMetacacheBlockInfo(fi, partN)
    			internalLogIf(ctx, err)
    			if err != nil || bi.EOS {
    				// We are done and there are no more parts.
    				return entries, io.EOF
    			}
    			if bi.endedPrefix(o.Prefix) {
    				// Nothing more for prefix.
    				return entries, io.EOF
    			}
    			partN++
    			retries = 0
    		}
    	}
    }
    
    // getListQuorum interprets list quorum values and returns appropriate
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top