Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for choice (0.15 sec)

  1. internal/config/storageclass/storage-class.go

    //
    // -- if input is RRS but RRS is not configured/initialized '-1' parity
    //
    //	for RRS is assumed, the caller is expected to choose the right parity
    //	at that point.
    //
    // -- if input is STANDARD but STANDARD is not configured/initialized '-1' parity
    //
    //	is returned, the caller is expected to choose the right parity
    //	at that point.
    func (sCfg *Config) GetParityForSC(sc string) (parity int) {
    	ConfigLock.RLock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    // To signify no more results are on an input channel, close it.
    // The output channel will be closed when all inputs are emptied.
    // If file names are equal, compareMeta is called to select which one to choose.
    // The entry not chosen will be discarded.
    // If the context is canceled the function will return the error,
    // otherwise the function will return nil.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. cmd/object-api-utils.go

    	pr, pw := io.Pipe()
    	// Copy input to compressor
    	opts := compressOpts
    	if encrypted {
    		// The values used for padding are not a security concern,
    		// but we choose pseudo-random numbers instead of just zeros.
    		rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    		opts = append([]s2.WriterOption{s2.WriterPadding(compPadEncrypted), s2.WriterPaddingSrc(rng)}, compressOpts...)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  4. internal/grid/connection.go

    					break
    				}
    				return err
    			}
    		}
    	}
    	return nil
    }
    */
    
    // shouldConnect returns a deterministic bool whether the local should initiate the connection.
    // It should be 50% chance of any host initiating the connection.
    func (c *Connection) shouldConnect() bool {
    	// The remote should have the opposite result.
    	h0 := xxh3.HashString(c.Local + c.Remote)
    	h1 := xxh3.HashString(c.Remote + c.Local)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	if c.Empty() {
    		return
    	}
    
    	// Now overlay existing object replication choices for target
    	if oi.DeleteMarker {
    		opts := replication.ObjectOpts{
    			Name:           oi.Name,
    			DeleteMarker:   oi.DeleteMarker,
    			VersionID:      oi.VersionID,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  6. cmd/test-utils_test.go

    	letterIdxMax  = 63 / letterIdxBits   // # of letter indices fitting in 63 bits
    )
    
    // Random number state.
    // We generate random temporary file names so that there's a good
    // chance the file doesn't exist yet.
    var (
    	randN  uint32
    	randmu sync.Mutex
    )
    
    // Temp files created in default Tmp dir
    var globalTestTmpDir = os.TempDir()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  7. operator/cmd/mesh/root.go

    	"istio.io/istio/pkg/url"
    	"istio.io/istio/pkg/version"
    )
    
    var (
    	baseVersion    = binversion.OperatorVersionString
    	setFlagHelpStr = `Override an IstioOperator value, e.g. to choose a profile
    (--set profile=demo), enable or disable components (--set components.cni.enabled=true), or override Istio
    settings (--set meshConfig.enableTracing=true). See documentation for more info:` + url.IstioOperatorSpec
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool.go

    	total := serverPools.TotalAvailable()
    	if total == 0 {
    		return -1
    	}
    	// choose when we reach this many
    	choose := rand.Uint64() % total
    	atTotal := uint64(0)
    	for _, pool := range serverPools {
    		atTotal += pool.Available
    		if atTotal > choose && pool.Available > 0 {
    			return pool.Index
    		}
    	}
    	// Should not happen, but print values just in case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    	defaultParityCount      int
    
    	poolIndex int
    
    	// A channel to send the set index to the MRF when
    	// any disk belonging to that set is connected
    	setReconnectEvent chan int
    
    	// Distribution algorithm of choice.
    	distributionAlgo string
    	deploymentID     [16]byte
    
    	lastConnectDisksOpTime time.Time
    }
    
    func (s *erasureSets) getDiskMap() map[Endpoint]StorageAPI {
    	diskMap := make(map[Endpoint]StorageAPI)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  10. src/cmd/cgo/doc.go

    needing gcc available. The second rule means that a build of a
    cgo-wrapped library like sqlite3 can generate a standalone executable
    instead of needing to refer to a dynamic library. The specific choice
    can be overridden using a command line flag: cmd/link -linkmode=internal or
    cmd/link -linkmode=external.
    
    In an external link, cmd/link will create a temporary directory, write any
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
Back to top