Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getHealLocalDiskEndpoints (0.39 sec)

  1. cmd/admin-heal-ops.go

    	for _, v := range ahs.healStatus {
    		dst[v.Endpoint] = v.toHealingDisk()
    	}
    
    	return dst
    }
    
    // getHealLocalDiskEndpoints() returns the list of disks that need
    // to be healed but there is no healing routine in progress on them.
    func (ahs *allHealState) getHealLocalDiskEndpoints() Endpoints {
    	ahs.RLock()
    	defer ahs.RUnlock()
    
    	var endpoints Endpoints
    	for ep, healing := range ahs.healLocalDisks {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. cmd/background-newdisks-heal-ops.go

    	defer diskCheckTimer.Stop()
    
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-diskCheckTimer.C:
    			healDisks := globalBackgroundHealState.getHealLocalDiskEndpoints()
    			if len(healDisks) == 0 {
    				// Reset for next interval.
    				diskCheckTimer.Reset(defaultMonitorNewDiskInterval)
    				continue
    			}
    
    			// Reformat disks immediately
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top