Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for Hevery (0.16 sec)

  1. cmd/xl-storage-disk-id-check.go

    func (e *lockedLastMinuteLatency) add(value time.Duration) {
    	e.addSize(value, 0)
    }
    
    // addSize will add a duration and size.
    func (e *lockedLastMinuteLatency) addSize(value time.Duration, sz int64) {
    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    	doneCh := make(chan error, 1)
    	defer xioutil.SafeClose(doneCh)
    
    	// Save rebalance.bin periodically.
    	go func() {
    		// Update rebalance.bin periodically once every 5-10s, chosen randomly
    		// to avoid multiple pool leaders herding to update around the same
    		// time.
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		randSleepFor := func() time.Duration {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. internal/grid/types.go

    // call Recycle() when the object is no longer needed.
    // The recycler should handle nil pointers.
    type Recycler interface {
    	Recycle()
    }
    
    // MSS is a map[string]string that can be serialized.
    // It is not very efficient, but it is only used for easy parameter passing.
    type MSS map[string]string
    
    // Get returns the value for the given key.
    func (m *MSS) Get(key string) string {
    	if m == nil {
    		return ""
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    		if err != nil {
    			return nil, err
    		}
    		if i > 0 {
    			res = append(res, ',')
    		}
    		s := fmt.Sprintf(`"%s": {"bytes": %d`, string(key), len(val))
    		// Check bitrot... We should only ever have one block...
    		if len(val) >= 32 {
    			want := val[:32]
    			data := val[32:]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  5. cmd/metacache-entries.go

    			}
    			return other, false
    		}
    		// Tiebreak on version count.
    		if len(eVers.versions) > len(oVers.versions) {
    			return e, false
    		}
    		return other, false
    	}
    
    	// Check if each version matches...
    	for i, eVer := range eVers.versions {
    		oVer := oVers.versions[i]
    		if eVer.header != oVer.header {
    			if eVer.header.hasEC() != oVer.header.hasEC() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    		c.done = nil
    	}
    	return c.rc.Close()
    }
    
    // keepHTTPReqResponseAlive can be used to avoid timeouts with long storage
    // operations, such as bitrot verification or data usage scanning.
    // Every 10 seconds a space character is sent.
    // keepHTTPReqResponseAlive will wait for the returned body to be read before starting the ticker.
    // The returned function should always be called to release resources.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  7. internal/grid/muxclient.go

    		}
    		m.addResponse(Response{Err: ErrIncorrectSequence})
    		return false
    	}
    	m.RecvSeq++
    	return true
    }
    
    // response will send handleIncoming response to client.
    // may never block.
    // Should return whether the next call would block.
    func (m *muxClient) response(seq uint32, r Response) {
    	if debugReqs {
    		fmt.Println(m.MuxID, m.parent.String(), "RESP")
    	}
    	if debugPrint {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/format-erasure.go

    		if format == nil {
    			continue
    		}
    		// NOTE: This code is specifically needed when migrating version
    		// V1 to V2 to V3, in a scenario such as this we only need to handle
    		// single sets since we never used to support multiple sets in releases
    		// with V1 format version.
    		if len(format.Erasure.Sets) > 1 {
    			continue
    		}
    		if format.Erasure.This == "" {
    			return true
    		}
    	}
    	return false
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  9. cmd/bucket-object-lock.go

    		}
    	}
    	return false
    }
    
    // enforceRetentionBypassForDelete enforces whether an existing object under governance can be deleted
    // with governance bypass headers set in the request.
    // Objects under site wide WORM can never be overwritten.
    // For objects in "Governance" mode, overwrite is allowed if a) object retention date is past OR
    // governance bypass headers are set and user has governance bypass permissions.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. cmd/storage-datatypes.go

    	BaseOptions
    	Recursive bool `msg:"r"`
    	Immediate bool `msg:"i"`
    	UndoWrite bool `msg:"u"`
    	// OldDataDir of the previous object
    	OldDataDir string `msg:"o,omitempty"` // old data dir used only when to revert a rename()
    }
    
    // BaseOptions represents common options for all Storage API calls
    type BaseOptions struct{}
    
    // RenameOptions represents rename API options, currently its same as BaseOptions
    type RenameOptions struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top