Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newResource (0.39 sec)

  1. cmd/bucket-replication.go

    	go p.startResyncRoutine(ctx, buckets, objAPI)
    	return nil
    }
    
    func (p *ReplicationPool) startResyncRoutine(ctx context.Context, buckets []BucketInfo, objAPI ObjectLayer) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	// Run the replication resync in a loop
    	for {
    		if err := p.loadResync(ctx, buckets, objAPI); err == nil {
    			<-ctx.Done()
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one_test.go

    	if goruntime.GOOS == "windows" {
    		// TODO: remove skip once the failing test has been fixed.
    		t.Skip("Skip failing test on Windows.")
    	}
    	random := rand.New(rand.NewSource(time.Now().UnixNano()))
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	var (
    		initialNodeNumber        = 1000
    		initialPodNumber         = 500
    		waitSchedulingPodNumber  = 200
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    	sect := Segtext.Sections[0]
    
    	sect.Align = int32(Funcalign)
    
    	ldr := ctxt.loader
    
    	if *flagRandLayout != 0 {
    		r := rand.New(rand.NewSource(*flagRandLayout))
    		textp := ctxt.Textp
    		i := 0
    		// don't move the buildid symbol
    		if len(textp) > 0 && ldr.SymName(textp[0]) == "go:buildid" {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    }
    
    // Init - initialize the site replication manager.
    func (c *SiteReplicationSys) Init(ctx context.Context, objAPI ObjectLayer) error {
    	go c.startHealRoutine(ctx, objAPI)
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	for {
    		err := c.loadFromDisk(ctx, objAPI)
    		if err == errConfigNotFound {
    			return nil
    		}
    		if err == nil {
    			break
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	pos  int
    	last []choice
    }
    
    type choice struct {
    	off int
    	n   int
    	max int
    }
    
    func (x *exhaustive) Next() bool {
    	if x.r == nil {
    		x.r = rand.New(rand.NewSource(time.Now().UnixNano()))
    	}
    	x.pos = 0
    	if x.last == nil {
    		x.last = []choice{}
    		return true
    	}
    	for i := len(x.last) - 1; i >= 0; i-- {
    		c := &x.last[i]
    		if c.n+1 < c.max {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top