Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for signatureMap (0.06 sec)

  1. cmd/metacache-set.go

    		writes[index] = di.Metrics.TotalWrites
    	}
    
    	filter := func(list []uint64) (commonCount uint64) {
    		maxCnt := 0
    		signatureMap := map[uint64]int{}
    		for _, v := range list {
    			signatureMap[v]++
    		}
    		for ops, count := range signatureMap {
    			if maxCnt < count && commonCount < ops {
    				maxCnt = count
    				commonCount = ops
    			}
    		}
    		if maxCnt < readQuorum {
    			return 0
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    		// ErrMissingFields expected.
    		{
    			inputSignElement: "Signature=",
    			expectedSignStr:  "",
    			expectedErrCode:  ErrMissingFields,
    		},
    		// Test case - 3.
    		// SignElement with missing "SignatureTag",ErrMissingSignTag expected.
    		{
    			inputSignElement: "Sign=",
    			expectedSignStr:  "",
    			expectedErrCode:  ErrMissingSignTag,
    		},
    		// Test case - 4.
    		// Test case with valid inputs.
    		{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 27.4K bytes
    - Viewed (0)
Back to top