Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 554 for errp (0.04 sec)

  1. cmd/xl-storage-disk-id-check.go

    	startTime := time.Now()
    	trace := globalTrace.NumSubscribers(madmin.TraceStorage) > 0
    	return func(sz int64, errp *error) {
    		duration := time.Since(startTime)
    
    		var err error
    		if errp != nil && *errp != nil {
    			err = *errp
    		}
    
    		atomic.AddUint64(&p.apiCalls[s], 1)
    		if IsErr(err, []error{
    			errFaultyDisk,
    			errFaultyRemoteDisk,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    		id, err := moduleHash(modroot, ismodcache)
    		if err != nil {
    			return nil, err
    		}
    		data, _, err := cache.GetMmap(cache.Default(), id)
    		if err != nil {
    			// Couldn't read from modindex. Assume we couldn't read from
    			// the index because the module hasn't been indexed yet.
    			data, err = indexModule(modroot)
    			if err != nil {
    				return nil, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cgroup_manager_linux.go

    	}
    	cpuPeriod, errP := fscommon.GetCgroupParamUint(cgroupPath, "cpu.cfs_period_us")
    	if errP != nil {
    		return nil, fmt.Errorf("failed to read CPU period for cgroup %v: %v", cgroupPath, errP)
    	}
    	cpuShares, errS := fscommon.GetCgroupParamUint(cgroupPath, "cpu.shares")
    	if errS != nil {
    		return nil, fmt.Errorf("failed to read CPU shares for cgroup %v: %v", cgroupPath, errS)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. src/text/template/parse/parse.go

    	case itemCharConstant, itemComplex, itemNumber:
    		number, err := t.newNumber(token.pos, token.val, token.typ)
    		if err != nil {
    			t.error(err)
    		}
    		return number
    	case itemLeftParen:
    		return t.pipeline("parenthesized pipeline", itemRightParen)
    	case itemString, itemRawString:
    		s, err := strconv.Unquote(token.val)
    		if err != nil {
    			t.error(err)
    		}
    		return t.newString(token.pos, token.val, s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. src/fmt/scan.go

    }
    
    func (s *ss) error(err error) {
    	panic(scanError{err})
    }
    
    func (s *ss) errorString(err string) {
    	panic(scanError{errors.New(err)})
    }
    
    func (s *ss) Token(skipSpace bool, f func(rune) bool) (tok []byte, err error) {
    	defer func() {
    		if e := recover(); e != nil {
    			if se, ok := e.(scanError); ok {
    				err = se.err
    			} else {
    				panic(e)
    			}
    		}
    	}()
    	if f == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. src/text/template/exec.go

    	panic(writeError{
    		Err: err,
    	})
    }
    
    // errRecover is the handler that turns panics into returns from the top
    // level of Parse.
    func errRecover(errp *error) {
    	e := recover()
    	if e != nil {
    		switch err := e.(type) {
    		case runtime.Error:
    			panic(e)
    		case writeError:
    			*errp = err.Err // Strip the wrapper.
    		case ExecError:
    			*errp = err // Keep the wrapper.
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    	if err1 != nil {
    		t.Fatalf("NestedPendingOperations failed for operation1. Expected: <no error> Actual: <%v>", err1)
    	}
    
    	err2 := grm.Run(mainVolumeName, "" /* podName */, node2, volumetypes.GeneratedOperations{OperationFunc: operation2})
    	if err2 != nil {
    		t.Fatalf("NestedPendingOperations failed for operation2. Expected: <no error> Actual: <%v>", err2)
    	}
    
    	opZContinueCh <- true
    	time.Sleep(delay)
    	op2ContinueCh <- true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  8. pkg/util/goroutinemap/goroutinemap_test.go

    	operation := func() error { return nil }
    
    	// Act
    	err1 := grm.Run(operation1Name, operation)
    	err2 := grm.Run(operation2Name, operation)
    
    	// Assert
    	if err1 != nil {
    		t.Fatalf("NewGoRoutine %q failed. Expected: <no error> Actual: <%v>", operation1Name, err1)
    	}
    
    	if err2 != nil {
    		t.Fatalf("NewGoRoutine %q failed. Expected: <no error> Actual: <%v>", operation2Name, err2)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  9. src/syscall/exec_linux.go

    		if err1 != 0 {
    			goto childerror
    		}
    		if pid != unsafe.Sizeof(err2) {
    			err1 = EINVAL
    			goto childerror
    		}
    		if err2 != 0 {
    			err1 = err2
    			goto childerror
    		}
    	}
    
    	// Session ID
    	if sys.Setsid {
    		_, _, err1 = RawSyscall(SYS_SETSID, 0, 0, 0)
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// Set process group
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. pilot/pkg/security/authz/model/generator_test.go

    				}
    				if gotYaml, err = protomarshal.ToYAML(gotProto); err != nil {
    					t.Fatalf("%s: failed to parse yaml: %s", tc.name, err)
    				}
    				t.Errorf("got:\n %v\n but want:\n %v", gotYaml, tc.want)
    			}
    		})
    	}
    }
    
    func yamlPermission(t *testing.T, yaml string) *rbacpb.Permission {
    	t.Helper()
    	p := &rbacpb.Permission{}
    	if err := protomarshal.ApplyYAML(yaml, p); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top