Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDiskHealingStatus (0.19 sec)

  1. cmd/background-newdisks-heal-ops.go

    				continue
    			}
    
    			for _, disk := range healDisks {
    				go func(disk Endpoint) {
    					globalBackgroundHealState.setDiskHealingStatus(disk, true)
    					if err := healFreshDisk(ctx, z, disk); err != nil {
    						globalBackgroundHealState.setDiskHealingStatus(disk, false)
    						timedout := OperationTimedOut{}
    						if !errors.Is(err, context.Canceled) && !errors.As(err, &timedout) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/admin-heal-ops.go

    		if !healing {
    			endpoints = append(endpoints, ep)
    		}
    	}
    	return endpoints
    }
    
    // Set, in the memory, the state of the disk as currently healing or not
    func (ahs *allHealState) setDiskHealingStatus(ep Endpoint, healing bool) {
    	ahs.Lock()
    	defer ahs.Unlock()
    
    	ahs.healLocalDisks[ep] = healing
    }
    
    func (ahs *allHealState) pushHealLocalDisks(healLocalDisks ...Endpoint) {
    	ahs.Lock()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
Back to top