Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 713 for errf (0.04 sec)

  1. docs/debugging/pprofgoparser/main.go

    func main() {
    	flag.Parse()
    
    	if len(flag.Args()) == 0 {
    		log.Fatal(helpUsage)
    	}
    
    	var err error
    
    	goroutinesRE = regexp.MustCompile(`^goroutine [0-9]+ \[[^,]+(, ([0-9]+) minutes)?\]:$`)
    
    	if searchText != "" {
    		searchRE, err = regexp.Compile(searchText)
    		if err != nil {
    			log.Fatal(err)
    		}
    	}
    
    	for _, arg := range flag.Args() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Mar 06 11:43:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. cmd/server-startup-msg.go

    	newAPIEndpoints = make([]string, len(apiEndpoints))
    	// Check all API endpoints for standard ports and strip them.
    	for i, apiEndpoint := range apiEndpoints {
    		_, err := xnet.ParseHTTPURL(apiEndpoint)
    		if err != nil {
    			continue
    		}
    		u, err := url.Parse(apiEndpoint)
    		if err != nil {
    			continue
    		}
    		if host == "" && isIPv6(u.Hostname()) {
    			// Skip all IPv6 endpoints
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 23 14:11:35 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. cmd/api-headers.go

    		}
    	}
    
    	var start, rangeLen int64
    	totalObjectSize, err := objInfo.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	if rs == nil && opts.PartNumber > 0 {
    		rs = partNumberToRangeSpec(objInfo, opts.PartNumber)
    	}
    
    	// For providing ranged content
    	start, rangeLen, err = rs.GetOffsetLength(totalObjectSize)
    	if err != nil {
    		return err
    	}
    
    	// Set content length.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 04:44:00 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. cmd/lock-rest-server-common_test.go

    func createLockTestServer(ctx context.Context, t *testing.T) (string, *lockRESTServer, string) {
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	locker := &lockRESTServer{
    		ll: &localLocker{
    			mutex:   sync.Mutex{},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. cmd/metrics-realtime.go

    			}
    		}
    		cpuCount, err := c.Counts(true)
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuCount)", byHostName, err.Error()))
    		} else {
    			m.Aggregated.CPU.CPUCount = cpuCount
    		}
    
    		loadStat, err := load.Avg()
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (loadStat)", byHostName, err.Error()))
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:16:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. cmd/storage-errors.go

    // interpretation.
    func osErrToFileErr(err error) error {
    	if err == nil {
    		return nil
    	}
    	if osIsNotExist(err) {
    		return errFileNotFound
    	}
    	if osIsPermission(err) {
    		return errFileAccessDenied
    	}
    	if isSysErrNotDir(err) || isSysErrIsDir(err) {
    		return errFileNotFound
    	}
    	if isSysErrPathNotFound(err) {
    		return errFileNotFound
    	}
    	if isSysErrTooManyFiles(err) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. schema/relationship.go

    			primaryKeys: toColumns(field.TagSettings["REFERENCES"]),
    		}
    	)
    
    	cacheStore := schema.cacheStore
    
    	if relation.FieldSchema, err = getOrParse(fieldValue, cacheStore, schema.namer); err != nil {
    		schema.err = err
    		return nil
    	}
    
    	if hasPolymorphicRelation(field.TagSettings) {
    		schema.buildPolymorphicRelation(relation, field)
    	} else if many2many := field.TagSettings["MANY2MANY"]; many2many != "" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. internal/s3select/sql/value.go

    // conversion to a number is attempted.
    func (v *Value) arithOp(op string, a *Value) error {
    	err := inferTypeForArithOp(v)
    	if err != nil {
    		return err
    	}
    
    	err = inferTypeForArithOp(a)
    	if err != nil {
    		return err
    	}
    
    	if !v.isNumeric() || !a.isNumeric() {
    		return errInvalidDataType(errArithMismatchedTypes)
    	}
    
    	if !isValidArithOperator(op) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  9. cmd/copy-part-range.go

    // for full details. This function treats an empty rangeString as
    // referring to the whole resource.
    func parseCopyPartRangeSpec(rangeString string) (hrange *HTTPRangeSpec, err error) {
    	hrange, err = parseRequestRangeSpec(rangeString)
    	if err != nil {
    		return nil, err
    	}
    	if hrange.IsSuffixLength || hrange.Start < 0 || hrange.End < 0 {
    		return nil, errInvalidRange
    	}
    	return hrange, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 18 03:27:04 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. internal/bucket/encryption/bucket-sse-config_test.go

    	for i, tc := range testCases {
    		ssec, err := ParseBucketSSEConfig(bytes.NewReader([]byte(tc.inputXML)))
    		if tc.shouldPass && err != nil {
    			t.Errorf("Test case %d: Expected to succeed but got %s", i+1, err)
    		}
    
    		if !tc.shouldPass {
    			if err == nil || err != nil && err.Error() != tc.expectedErr.Error() {
    				t.Errorf("Test case %d: Expected %s but got %s", i+1, tc.expectedErr, err)
    			}
    			continue
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 16 18:28:30 UTC 2022
    - 6.1K bytes
    - Viewed (0)
Back to top