Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for above (0.13 sec)

  1. internal/logger/reqinfo.go

    	Region       string           `json:"-"`
    	Owner        bool             `json:"-"`
    	AuthType     string           `json:"-"`
    	tags         []KeyVal         // Any additional info not accommodated by above fields
    	sync.RWMutex
    }
    
    // NewReqInfo :
    func NewReqInfo(remoteHost, userAgent, deploymentID, requestID, api, bucket, object string) *ReqInfo {
    	return &ReqInfo{
    		RemoteHost:   remoteHost,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. cni/pkg/repair/netns.go

    	if err != nil {
    		return "", fmt.Errorf("read procs: %v", err)
    	}
    	oldest := uint64(math.MaxUint64)
    	best := ""
    	// We will iterate over all processes. Our goal is to find a process with the same network ID as we found above.
    	// There should be 1 or 2 processes that match: the pause container should always be there, and the istio-validation *might*.
    	// We want the pause container, as the istio-validation one may exit before we are done.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. internal/lock/lock_windows.go

    	// Do nothing (and don't allocate) if the path is "short".
    	// Empirically (at least on the Windows Server 2013 builder),
    	// the kernel is arbitrarily okay with < 248 bytes. That
    	// matches what the docs above say:
    	// "When using an API to create a directory, the specified
    	// path cannot be so long that you cannot append an 8.3 file
    	// name (that is, the directory name cannot exceed MAX_PATH
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. misc/cgo/gmp/gmp.go

    	}
    	type _C_mpz_t [1]_C___mpz_struct
    
    and then replaces each occurrence of a type C.xxx with _C_xxx.
    
    If xxx is data, cgo arranges for C.xxx to refer to the C variable,
    with the type translated as described above.  To do this, cgo must
    introduce a Go variable that points at the C variable (the linker can
    be told to initialize this pointer).  For example, if the gmp library
    provided
    
    	mpz_t zero;
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  5. cmd/erasure-coding.go

    	e.encoder = func() reedsolomon.Encoder {
    		once.Do(func() {
    			e, err := reedsolomon.New(dataBlocks, parityBlocks, reedsolomon.WithAutoGoroutines(int(e.ShardSize())))
    			if err != nil {
    				// Error conditions should be checked above.
    				panic(err)
    			}
    			enc = e
    		})
    		return enc
    	}
    	return
    }
    
    // EncodeData encodes the given data and returns the erasure-coded data.
    // It returns an error if the erasure coding failed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  6. cmd/metacache-bucket.go

    			continue
    		}
    		if cache.bucket != b.bucket {
    			logger.Info("cache bucket mismatch %s != %s", b.bucket, cache.bucket)
    			remove[id] = struct{}{}
    			continue
    		}
    	}
    
    	// If above limit, remove the caches with the oldest handout time.
    	if len(caches)-len(remove) > metacacheMaxEntries {
    		remainCaches := make([]metacache, 0, len(caches)-len(remove))
    		for id, cache := range caches {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  7. internal/pubsub/pubsub_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh2, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	close(doneCh1)
    	// Allow for the above statement to take effect.
    	time.Sleep(100 * time.Millisecond)
    	ps.Lock()
    	if len(ps.subs) != 1 {
    		t.Fatal("expected 1 subscriber")
    	}
    	ps.Unlock()
    	close(doneCh2)
    }
    
    type maskString string
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. cmd/erasure-metadata-utils_test.go

    	disks := z.serverPools[0].GetDisks(0)()
    	distribution := []int{16, 14, 12, 10, 8, 6, 4, 2, 1, 3, 5, 7, 9, 11, 13, 15}
    	shuffledDisks := shuffleDisks(disks, distribution)
    	// From the "distribution" above you can notice that:
    	// 1st data block is in the 9th disk (i.e distribution index 8)
    	// 2nd data block is in the 8th disk (i.e distribution index 7) and so on.
    	if shuffledDisks[0] != disks[8] ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top