Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for countFailed (0.05 sec)

  1. cmd/background-heal-ops.go

    			// when respCh is not set caller is not waiting but we
    			// update the relevant metrics for them
    			if bgSeq != nil {
    				if err == nil {
    					bgSeq.countHealed(res.Type)
    				} else {
    					bgSeq.countFailed(res.Type)
    				}
    			}
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    func newHealRoutine() *healRoutine {
    	workers := runtime.GOMAXPROCS(0) / 2
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. cmd/admin-heal-ops.go

    	// Make a copy before returning the value
    	retMap := make(map[madmin.HealItemType]int64, len(h.healFailedItemsMap))
    	maps.Copy(retMap, h.healFailedItemsMap)
    
    	return retMap
    }
    
    func (h *healSequence) countFailed(healType madmin.HealItemType) {
    	h.mutex.Lock()
    	defer h.mutex.Unlock()
    
    	h.healFailedItemsMap[healType]++
    	h.lastHealActivity = UTCNow()
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top