Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for if (0.16 sec)

  1. cmd/admin-bucket-handlers.go

    	for {
    		select {
    		case entry, ok := <-diffCh:
    			if !ok {
    				return
    			}
    			if err := enc.Encode(entry); err != nil {
    				return
    			}
    			if len(diffCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    		case <-keepAliveTicker.C:
    			if len(diffCh) > 0 {
    				continue
    			}
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. cmd/common-main.go

    	if dir == "" {
    		dir = getDefaultDir()
    	}
    
    	if dir == "" {
    		if !dirSet {
    			return nil, fmt.Errorf("missing option must be provided")
    		}
    		return nil, fmt.Errorf("provided option cannot be empty")
    	}
    
    	// Disallow relative paths, figure out absolute paths.
    	dirAbs, err := filepath.Abs(dir)
    	if err != nil {
    		return nil, err
    	}
    	err = mkdirAllIgnorePerm(dirAbs)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  3. cmd/erasure-server-pool-decom.go

    				if err != nil {
    					return err
    				}
    
    				// Check if the current bucket has a configured lifecycle policy
    				lc, err = globalLifecycleSys.Get(bi.Name)
    				if err != nil && !errors.Is(err, BucketLifecycleNotFound{Bucket: bi.Name}) {
    					return err
    				}
    
    				// Check if bucket is object locked.
    				lr, err = globalBucketObjectLockSys.Get(bi.Name)
    				if err != nil {
    					return err
    				}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  4. cmd/config-current.go

    		if _, err := browser.LookupConfig(s[config.BrowserSubSys][config.Default]); err != nil {
    			return err
    		}
    	default:
    		if config.LoggerSubSystems.Contains(subSys) {
    			if err := logger.ValidateSubSysConfig(ctx, s, subSys); err != nil {
    				return err
    			}
    		}
    	}
    
    	if config.NotifySubSystems.Contains(subSys) {
    		if err := notify.TestSubSysNotificationTargets(ctx, s, subSys, NewHTTPTransport()); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    // successfully the version only if the backend is Erasure.
    func formatGetBackendErasureVersion(b []byte) (string, error) {
    	meta := &formatMetaV1{}
    	if err := json.Unmarshal(b, meta); err != nil {
    		return "", err
    	}
    	if meta.Version != formatMetaVersionV1 {
    		return "", fmt.Errorf(`format.Version expected: %s, got: %s`, formatMetaVersionV1, meta.Version)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses.go

    	// only meant if you want to further optimize drive distribution.
    	if setDriveCount > 0 {
    		msg := fmt.Sprintf("Invalid set drive count. Acceptable values for %d number drives are %d", commonSize, setCounts)
    		var found bool
    		for _, ss := range setCounts {
    			if ss == setDriveCount {
    				found = true
    			}
    		}
    		if !found {
    			return nil, config.ErrInvalidErasureSetSize(nil).Msg(msg)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. internal/grid/grid_test.go

    		errFatal(resp.Err)
    		if resp.Msg[0] != byte(got) {
    			t.Error("expected response", got, "got", resp.Msg[0])
    		}
    		got++
    	}
    	if got != 100 {
    		t.Error("expected 100 responses, got", got)
    	}
    }
    
    func testServerInCongestion(t *testing.T, local, remote *Manager) {
    	defer testlogger.T.SetErrorTB(t)()
    	errFatal := func(err error) {
    		t.Helper()
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net.go

    	log.Debug("pod netns was not found, trying to find it using procfs")
    	// this can happen if the pod was dynamically added to the mesh after it was created.
    	// in that case, try finding the netns using procfs.
    	if err := s.rescanPod(pod); err != nil {
    		log.Errorf("error scanning proc: error was %s", err)
    		return nil, err
    	}
    	// try again. we can still get here if the pod is in the process of being created.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  9. cmd/sftp-server.go

    			if globalIAMSys.LDAPConfig.Enabled() {
    				sa, _, err := globalIAMSys.getServiceAccount(context.Background(), c.User())
    				if err != nil && !errors.Is(err, errNoSuchServiceAccount) {
    					return nil, err
    				}
    				if errors.Is(err, errNoSuchServiceAccount) {
    					targetUser, targetGroups, err := globalIAMSys.LDAPConfig.Bind(c.User(), string(pass))
    					if err != nil {
    						return nil, err
    					}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  10. cmd/data-scanner.go

    		}
    
    	}
    	// Compact if too many children...
    	if !into.Compacted {
    		f.newCache.reduceChildrenOf(thisHash, dataScannerCompactAtChildren, f.newCache.Info.Name != folder.name)
    	}
    	if _, ok := f.updateCache.Cache[thisHash.Key()]; !wasCompacted && ok {
    		// Replace if existed before.
    		if flat := f.newCache.sizeRecursive(thisHash.Key()); flat != nil {
    			f.updateCache.deleteRecursive(thisHash)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top