Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for subtract (0.15 sec)

  1. cmd/bitrot.go

    	for left > 0 {
    		// Read expected hash...
    		h.Reset()
    		n, err := io.ReadFull(r, hashBuf)
    		if err != nil {
    			// Read's failed for object with right size, file is corrupt.
    			return err
    		}
    		// Subtract hash length..
    		left -= int64(n)
    		if left < shardSize {
    			shardSize = left
    		}
    
    		read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    		// console.Debugf("compacting %v, removing %d children\n", candidate, removing)
    
    		flat.Compacted = true
    		d.deleteRecursive(candidate)
    		d.replaceHashed(candidate, nil, *flat)
    
    		// Remove top entry and subtract removed children.
    		remove -= removing
    		leaves = leaves[1:]
    	}
    }
    
    // StringAll returns a detailed string representation of all entries in the cache.
    func (d *dataUsageCache) StringAll() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  3. internal/dsync/drwmutex.go

    	ctx, cancel := context.WithTimeout(ctx, opts.Timeout)
    	defer cancel()
    
    	// Tolerance is not set, defaults to half of the locker clients.
    	tolerance := len(restClnts) / 2
    
    	// Quorum is effectively = total clients subtracted with tolerance limit
    	quorum := len(restClnts) - tolerance
    	if !isReadLock {
    		// In situations for write locks, as a special case
    		// to avoid split brains we make sure to acquire
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top