Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for initial (0.54 sec)

  1. internal/lsync/lrwmutex_test.go

    	ctx := context.Background()
    	lrwm := NewLRWMutex()
    
    	// fmt.Println("Getting initial write lock")
    	if !lrwm.GetLock(ctx, "", "", time.Second) {
    		panic("Failed to acquire initial write lock")
    	}
    
    	go func() {
    		time.Sleep(2 * time.Second)
    		lrwm.Unlock()
    		// fmt.Println("Initial write lock released, waiting...")
    	}()
    
    	// fmt.Println("Trying to acquire 2nd write lock, waiting...")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. internal/dsync/drwmutex_test.go

    	// fmt.Println("Getting initial write lock")
    	ctx1, cancel1 := context.WithCancel(context.Background())
    	if !drwm1.GetLock(ctx1, cancel1, id, source, Options{Timeout: time.Second}) {
    		panic("Failed to acquire initial write lock")
    	}
    
    	go func() {
    		time.Sleep(3 * testDrwMutexAcquireTimeout)
    		drwm1.Unlock(context.Background())
    		// fmt.Println("Initial write lock released, waiting...")
    	}()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  3. cmd/data-scanner-metric.go

    // Returns a function that can be used to update the current object
    // and a function to call to when processing finished.
    func (p *scannerMetrics) currentPathUpdater(disk, initial string) (update func(path string), done func()) {
    	initialPtr := unsafe.Pointer(&initial)
    	tracker := &currentPathTracker{
    		name: &initialPtr,
    	}
    
    	p.currentPaths.Store(disk, tracker)
    	return func(path string) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics.go

    	startTime            time.Time // Start time for window
    	expMovingAvg         float64   // Previously calculated exponential moving average
    }
    
    // newRateMeasurement creates a new instance of the measurement with the initial start time.
    func newRateMeasurement(initTime time.Time) *rateMeasurement {
    	return &rateMeasurement{
    		startTime: initTime,
    	}
    }
    
    // incrementBytes add bytes reported for a bucket/target.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    // If data is not xlv2, it is returned in full.
    func readXLMetaNoData(r io.Reader, size int64) ([]byte, error) {
    	initial := size
    	hasFull := true
    	if initial > metaDataReadDefault {
    		initial = metaDataReadDefault
    		hasFull = false
    	}
    
    	buf := metaDataPoolGet()[:initial]
    	_, err := io.ReadFull(r, buf)
    	if err != nil {
    		return nil, fmt.Errorf("readXLMetaNoData(io.ReadFull): %w", err)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  6. cmd/dynamic-timeouts_test.go

    	timeout := newDynamicTimeout(time.Minute, time.Second)
    
    	initial := timeout.Timeout()
    
    	for i := 0; i < dynamicTimeoutLogSize; i++ {
    		timeout.LogFailure()
    	}
    
    	adjusted := timeout.Timeout()
    
    	if initial >= adjusted {
    		t.Errorf("Failure to increase timeout, expected %v to be more than %v", adjusted, initial)
    	}
    }
    
    func TestDynamicTimeoutDualIncrease(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  7. cmd/leak-detect_test.go

    	}
    	return snapshot
    }
    
    // CompareCurrentSnapshot - Compares the initial relevant stack trace with the current one (during the time of invocation).
    func (initialSnapShot LeakDetect) CompareCurrentSnapshot() []string {
    	var stackDiff []string
    	for _, g := range pickRelevantGoroutines() {
    		// Identify the Go routines those were not present in the initial snapshot.
    		// In other words a stack diff.
    		if !initialSnapShot.relevantRoutines[g] {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. cmd/data-scanner.go

    	if i.debug {
    		if versionID != "" {
    			console.Debugf(applyActionsLogPrefix+" lifecycle: %q (version-id=%s), Initial scan: %v\n", i.objectPath(), versionID, lcEvt.Action)
    		} else {
    			console.Debugf(applyActionsLogPrefix+" lifecycle: %q Initial scan: %v\n", i.objectPath(), lcEvt.Action)
    		}
    	}
    
    	switch lcEvt.Action {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  9. cmd/iam-object-store.go

    			// If a service account's parent user is not in iamUsersMap, the
    			// parent is an STS account. Such accounts may have a policy mapped
    			// on the parent user, so we load them. This is not needed for the
    			// initial server startup, however, it is needed for the case where
    			// the STS account's policy mapping (for example in LDAP mode) may
    			// be changed and the user's policy mapping in memory is stale
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  10. docs/sts/etcd.md

      --listen-client-urls http://0.0.0.0:2379 \
      --advertise-client-urls http://0.0.0.0:2379 \
      --listen-peer-urls http://0.0.0.0:2380 \
      --initial-advertise-peer-urls http://0.0.0.0:2380 \
      --initial-cluster s1=http://0.0.0.0:2380 \
      --initial-cluster-token tkn \
      --initial-cluster-state new
    ```
    
    You may also setup etcd with TLS following this documentation [here](https://coreos.com/etcd/docs/latest/op-guide/security.html)
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 3.4K bytes
    - Viewed (0)
Back to top