Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FailCount (0.35 sec)

  1. test/abi/bad_internal_offsets.go

    package genChecker0
    
    var FailCount int
    
    //go:noinline
    func NoteFailure(fidx int, pkg string, pref string, parmNo int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    //go:noinline
    func NoteFailureElem(fidx int, pkg string, pref string, parmNo int, elem int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    type StructF0S0 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. cmd/site-replication-utils.go

    	if currSt != ResyncStarted {
    		return currSt
    	}
    	totBuckets := len(m)
    	var cmpCount, failCount int
    	for _, st := range m {
    		switch st {
    		case ResyncCompleted:
    			cmpCount++
    		case ResyncFailed:
    			failCount++
    		}
    	}
    	if cmpCount == totBuckets {
    		return ResyncCompleted
    	}
    	if cmpCount+failCount == totBuckets {
    		return ResyncFailed
    	}
    	return ResyncStarted
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
Back to top