Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getMinioMode (0.12 sec)

  1. cmd/utils_test.go

    			t.Fatalf("Test %d: Common prefix found: `%v`, expected: `%v`", i+1, foundPrefix, test.commonPrefix)
    		}
    	}
    }
    
    func TestGetMinioMode(t *testing.T) {
    	testMinioMode := func(expected string) {
    		if mode := getMinioMode(); mode != expected {
    			t.Fatalf("Expected %s got %s", expected, mode)
    		}
    	}
    	globalIsDistErasure = true
    	testMinioMode(globalMinioModeDistErasure)
    
    	globalIsDistErasure = false
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. cmd/config-current.go

    		loggerCfg, err := logger.LookupConfigForSubSys(ctx, s, config.LoggerWebhookSubSys)
    		if err != nil {
    			configLogIf(ctx, fmt.Errorf("Unable to load logger webhook config: %w", err))
    		}
    		userAgent := getUserAgent(getMinioMode())
    		for n, l := range loggerCfg.HTTP {
    			if l.Enabled {
    				l.LogOnceIf = configLogOnceConsoleIf
    				l.UserAgent = userAgent
    				l.Transport = NewHTTPTransportWithClientCerts(l.ClientCert, l.ClientKey)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 08:14:58 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  3. cmd/handler-utils.go

    		case madmin.AdminAPIVersion:
    			desc = fmt.Sprintf("This 'admin' API is not supported by server in '%s'", getMinioMode())
    		default:
    			desc = fmt.Sprintf("Unexpected client 'admin' API version found '%s', expected '%s', please downgrade the client to older releases", version, madmin.AdminAPIVersion)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. cmd/server-main.go

    	go func() {
    		if !globalServerCtxt.Quiet && !globalInplaceUpdateDisabled {
    			// Check for new updates from dl.min.io.
    			bootstrapTrace("checkUpdate", func() {
    				checkUpdate(getMinioMode())
    			})
    		}
    	}()
    
    	// Set system resources to maximum.
    	bootstrapTrace("setMaxResources", func() {
    		_ = setMaxResources(globalServerCtxt)
    	})
    
    	// Verify kernel release and version.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. cmd/utils.go

    				si := strl - i - 1
    				if xfix[xi] != str[si] {
    					xfix = xfix[xi+1:]
    					break
    				}
    			}
    		}
    	}
    	return xfix
    }
    
    // Returns the mode in which MinIO is running
    func getMinioMode() string {
    	switch {
    	case globalIsDistErasure:
    		return globalMinioModeDistErasure
    	case globalIsErasure:
    		return globalMinioModeErasure
    	case globalIsErasureSD:
    		return globalMinioModeErasureSD
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top